diff --git a/src/Knp/Bundle/KnpBundlesBundle/Entity/Owner.php b/src/Knp/Bundle/KnpBundlesBundle/Entity/Owner.php index ae30197d..e4998d00 100644 --- a/src/Knp/Bundle/KnpBundlesBundle/Entity/Owner.php +++ b/src/Knp/Bundle/KnpBundlesBundle/Entity/Owner.php @@ -285,6 +285,16 @@ public function removeBundle(Bundle $bundle) $this->bundles->removeElement($bundle); } + /** + * Check that owner is using bundles + * + * @param Bundle $bundle + */ + public function isUsingBundle(Bundle $bundle) + { + return $this->bundles->contains($bundle); + } + /** * Get bundles *