From 11010dbf05c9b9fc5a7f6740c278b6c9299793c9 Mon Sep 17 00:00:00 2001 From: Joseph Bielawski Date: Sat, 15 Sep 2012 17:24:05 +0200 Subject: [PATCH] Add missing method to Owner entity --- src/Knp/Bundle/KnpBundlesBundle/Entity/Owner.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 *