Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
Added max depth checks to users and groups
Browse files Browse the repository at this point in the history
  • Loading branch information
brettminnie committed Jul 30, 2014
1 parent 6975df7 commit b87db88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -100,7 +100,7 @@ abstract class AssignableComposite implements IsAssignee, \IteratorAggregate
* @ORM\ManyToMany(cascade={"all"}, targetEntity="Opg\Core\Model\Entity\Assignable\Team", inversedBy="members")
* @ORM\JoinTable(name="assignee_teams")
* @var ArrayCollection
* @MaxDepth(1)
* @MaxDepth(2)
*/
protected $teams;

Expand Down
2 changes: 1 addition & 1 deletion src/Opg/Core/Model/Entity/Assignable/Team.php
Expand Up @@ -25,7 +25,7 @@ class Team extends AssignableComposite implements EntityInterface, IsAssignee, I

/**
* @ORM\ManyToMany(cascade={"all"}, targetEntity="AssignableComposite", mappedBy="teams")
* @MaxDepth(1)
* @MaxDepth(2)
*/
protected $members;

Expand Down

0 comments on commit b87db88

Please sign in to comment.