WIP: Symfony 6 project remake #2
|
@ -9,10 +9,10 @@ use Doctrine\Common\Collections\ArrayCollection;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: UserRepository::class)]
|
#[ORM\Entity(repositoryClass: UserRepository::class)]
|
||||||
|
#[ORM\HasLifecycleCallbacks]
|
||||||
#[ORM\Table(name: 'users', schema: 'users')]
|
#[ORM\Table(name: 'users', schema: 'users')]
|
||||||
#[ORM\Index(columns: ['public'], name: 'idx_user_public')]
|
#[ORM\Index(columns: ['public'], name: 'idx_user_public')]
|
||||||
#[ORM\Index(columns: ['is_removed'], name: 'idx_user_removed')]
|
#[ORM\Index(columns: ['is_removed'], name: 'idx_user_removed')]
|
||||||
#[ORM\HasLifecycleCallbacks]
|
|
||||||
class User
|
class User
|
||||||
{
|
{
|
||||||
public const AVATAR_SIZE_SMALL = '24';
|
public const AVATAR_SIZE_SMALL = '24';
|
||||||
|
|
Loading…
Reference in a new issue