Skip to content

Commit

Permalink
Add missing method to Owner entity
Browse files Browse the repository at this point in the history
  • Loading branch information
stloyd committed Sep 15, 2012
1 parent 8aba06c commit 11010db
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Knp/Bundle/KnpBundlesBundle/Entity/Owner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 11010db

Please sign in to comment.