Added constraints for selectable attribute.

This commit is contained in:
Jan Böhmer 2019-08-12 21:47:25 +02:00
parent 408d98c6e1
commit 51be176418
12 changed files with 169 additions and 0 deletions

View file

@ -63,6 +63,7 @@ namespace App\Entity\UserSystem;
use App\Entity\Base\NamedDBElement;
use App\Security\Interfaces\HasPermissionsInterface;
use App\Validator\Constraints\Selectable;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Validator\Constraints as Assert;
@ -156,6 +157,7 @@ class User extends NamedDBElement implements UserInterface, HasPermissionsInterf
* @var Group|null the group this user belongs to
* @ORM\ManyToOne(targetEntity="Group", inversedBy="users", fetch="EAGER")
* @ORM\JoinColumn(name="group_id", referencedColumnName="id")
* @Selectable()
*/
protected $group;