src/Entity/Gallery/Group.php line 23
<?phpnamespace App\Entity\Gallery;use App\Entity\Common\File;use App\Entity\Common\Owner;use App\Entity\Traits\ActiveTrait;use App\Entity\Traits\TrackerFields;use App\Entity\Traits\UserCreatedInterface;use App\Entity\Traits\UserUpdatedInterface;use App\Entity\UUID\HaveUuidInterface;use App\Entity\UUID\UuidTrait;use App\Model\Common\HaveOwnerInterface;use App\Model\Translation\TranslatableTrait;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;#[ORM\Table(name: 'gallery_group')]#[ORM\Entity(repositoryClass: 'App\Repository\Gallery\GroupRepository')]#[ORM\HasLifecycleCallbacks]class Group implements HaveOwnerInterface, UserCreatedInterface, UserUpdatedInterface, TranslatableInterface{use TrackerFields;use TranslatableTrait;use ActiveTrait;#[ORM\Id]#[ORM\GeneratedValue(strategy: 'AUTO')]#[ORM\Column(type: 'integer')]private ?int $id;#[ORM\Column(type: 'integer')]private int $weight = 50;#[ORM\Embedded(class: \App\Entity\Common\Owner::class)]private Owner $owner;#[ORM\OneToMany(mappedBy: 'group', targetEntity: \App\Entity\Gallery\Album::class)]private Collection $albums;#[ORM\ManyToOne(targetEntity: \App\Entity\Common\File::class, cascade: ['persist', 'remove'])]#[ORM\JoinColumn(nullable: true)]private ?File $previewImage;public function __construct(){$this->albums = new ArrayCollection();}/*** @return Owner*/public function getOwner(): Owner{return $this->owner;}/*** @param Owner $owner*/public function setOwner(Owner $owner): void{$this->owner = $owner;}/*** @return Collection*/public function getAlbums(): Collection{return $this->albums;}/*** @param Collection $albums*/public function setAlbums(Collection $albums): void{$this->albums = $albums;}/*** @return int*/public function getWeight(): int{return $this->weight;}/*** @param int $weight*/public function setWeight(int $weight): void{$this->weight = $weight;}/*** @return int|null*/public function getId(): ?int{return $this->id;}/*** @param int|null $id*/public function setId(?int $id): void{$this->id = $id;}public function getPreviewImage(): ?File{return $this->previewImage;}public function setPreviewImage(?File $previewImage): void{$this->previewImage = $previewImage;}}