1616 *
1717 * This class can be extended for *Users*, *Subscribers*, etc.
1818 */
19- #[
20- ORM \MappedSuperclass,
19+ #[ORM \MappedSuperclass,
2120 ORM \Table,
22- ORM \HasLifecycleCallbacks
23- ]
21+ ORM \HasLifecycleCallbacks]
2422abstract class AbstractHuman implements DateTimedInterface, PersistableInterface
2523{
2624 use SequentialIdTrait;
@@ -40,32 +38,24 @@ abstract class AbstractHuman implements DateTimedInterface, PersistableInterface
4038 /**
4139 * Public name (pseudonyme) that can be displayed to a public audience.
4240 */
43- #[
44- ORM \Column(name: 'publicName ' , type: 'string ' , length: 250 , nullable: true ),
41+ #[ORM \Column(name: 'publicName ' , type: 'string ' , length: 250 , nullable: true ),
4542 Serializer \Groups(['user_public ' , 'human ' ]),
46- Assert \Length(max: 250 )
47- ]
43+ Assert \Length(max: 250 )]
4844 protected ?string $ publicName = null ;
4945
50- #[
51- ORM \Column(name: 'firstName ' , type: 'string ' , length: 250 , nullable: true ),
46+ #[ORM \Column(name: 'firstName ' , type: 'string ' , length: 250 , nullable: true ),
5247 Serializer \Groups(['user_personal ' , 'human ' ]),
53- Assert \Length(max: 250 )
54- ]
48+ Assert \Length(max: 250 )]
5549 protected ?string $ firstName = null ;
5650
57- #[
58- ORM \Column(name: 'lastName ' , type: 'string ' , length: 250 , nullable: true ),
51+ #[ORM \Column(name: 'lastName ' , type: 'string ' , length: 250 , nullable: true ),
5952 Serializer \Groups(['user_personal ' , 'human ' ]),
60- Assert \Length(max: 250 )
61- ]
53+ Assert \Length(max: 250 )]
6254 protected ?string $ lastName = null ;
6355
64- #[
65- ORM \Column(type: 'string ' , length: 250 , nullable: true ),
56+ #[ORM \Column(type: 'string ' , length: 250 , nullable: true ),
6657 Serializer \Groups(['user_personal ' , 'human ' ]),
67- Assert \Length(max: 250 )
68- ]
58+ Assert \Length(max: 250 )]
6959 protected ?string $ company = null ;
7060
7161 public function getEmail (): ?string
0 commit comments