fix error in user loading and validate scope/user consistency

This commit is contained in:
2018-08-29 23:18:37 +02:00
parent 7b7d30797f
commit 6e8f72f5cc
5 changed files with 31 additions and 21 deletions

View File

@@ -28,9 +28,15 @@ use Chill\PersonBundle\Entity\Person;
use Chill\MainBundle\Entity\HasCenterInterface;
use Chill\MainBundle\Entity\HasScopeInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Chill\MainBundle\Validator\Constraints\Entity\UserCircleConsistency;
/**
* Activity
* @UserCircleConsistency(
* "CHILL_ACTIVITY_SEE_DETAILS",
* getUserFunction="getUser",
* path="scope"
* )
*/
class Activity implements HasCenterInterface, HasScopeInterface
{