mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-10-11 10:08:08 +02:00
Implemented setIdentity for RequestedEntity
This commit is contained in:
@@ -15,6 +15,8 @@ use App\Entity\Meta\Relation\Parent\CreatorRelation;
|
||||
use App\Attribut\MemberRelationAttribut;
|
||||
use App\Entity\Meta\Relation\Member\MemberRelation;
|
||||
use App\Entity\Meta\Relation\Member\MemberRelationInterface;
|
||||
use App\Attribut\SlugAttribut;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
@@ -47,7 +49,22 @@ use App\Entity\Meta\Relation\Member\MemberRelationInterface;
|
||||
*/
|
||||
abstract class AbstractSource extends AbstractEntity implements SourceInterface
|
||||
{
|
||||
use LawAttribut,CreatorRelationAttribut, MemberRelationAttribut;
|
||||
use LawAttribut,CreatorRelationAttribut, MemberRelationAttribut, SlugAttribut;
|
||||
|
||||
/**
|
||||
* System slugs should be writen in UPPER CASES
|
||||
* Slugs which are defined by the user are checked via the assert.
|
||||
*
|
||||
* @ORM\Column(type="string",length=30,nullable=true,unique=true)
|
||||
* @Assert\Regex(pattern="/^[a-z]+$/")
|
||||
*
|
||||
* @todo Check out if a plugin can solve this purpose;
|
||||
*
|
||||
* @see https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/sluggable.md
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $slug;
|
||||
|
||||
/**
|
||||
* @var CreatorRelationInterface
|
||||
|
@@ -7,10 +7,11 @@ use App\Entity\EntityInterface;
|
||||
use App\Attribut\LawAttributInterface;
|
||||
use App\Attribut\CreatorRelationAttributInterface;
|
||||
use App\Attribut\MemberRelationAttributInterface;
|
||||
use App\Attribut\SlugAttributInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface SourceInterface extends IdAttributInterface, EntityInterface, LawAttributInterface, CreatorRelationAttributInterface, MemberRelationAttributInterface
|
||||
interface SourceInterface extends IdAttributInterface, EntityInterface, LawAttributInterface, CreatorRelationAttributInterface, MemberRelationAttributInterface, SlugAttributInterface
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user