Skip to content
Permalink
Browse files

feat: Refactored existing DTOs to pass proper entity class to `Entity…

…ReferenceExists` constraint.
  • Loading branch information...
tarlepp committed Sep 21, 2019
1 parent 0d41955 commit 3b0867102610c50e726ca586f4b10241f426ab8b
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/DTO/ApiKey/ApiKey.php
  2. +1 −1 src/DTO/User/User.php
  3. +1 −1 src/DTO/UserGroup/UserGroup.php
@@ -53,7 +53,7 @@ class ApiKey extends RestDto
/**
* @var UserGroupEntity[]|array<int, UserGroupEntity>
*
* @AppAssert\EntityReferenceExists()
* @AppAssert\EntityReferenceExists(entityClass=UserGroupEntity::class)
*/
protected $userGroups = [];
@@ -80,7 +80,7 @@ class User extends RestDto
/**
* @var UserGroupEntity[]|array<int, UserGroupEntity>
*
* @AppAssert\EntityReferenceExists()
* @AppAssert\EntityReferenceExists(entityClass=UserGroupEntity::class)
*/
protected $userGroups = [];
@@ -40,7 +40,7 @@ class UserGroup extends RestDto
/**
* @var \App\Entity\Role
*
* @AppAssert\EntityReferenceExists()
* @AppAssert\EntityReferenceExists(entityClass=RoleEntity::class)
*/
protected $role;

0 comments on commit 3b08671

Please sign in to comment.
You can’t perform that action at this time.