/
vladislavts
/
gcppmsp
Обзор
Документация
Войти
/
vladislavts
/
gcppmsp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
prod
src/Entity/Article.php
151 строка
3 KB
Vladislav
создание и редактирование страниц/записей работает
23 окт 2022, 20:54
23 окт 2022, 20:54
2618ca4
Код
Авторство
О чём код?
<?php namespace App\Entity; use App\Repository\ArticleRepository; use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; #[ORM\Entity(repositoryClass: ArticleRepository::class)] class Article { #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $title = null; #[ORM\Column(length: 255)] private ?string $type = null; #[Gedmo\Slug(fields: ['title', 'id'])] #[ORM\Column(length: 255)] private ?string $slug = null; #[ORM\Column(length: 255, nullable: true)] private ?string $aplication = null; #[ORM\Column(nullable: true)] private ?int $imageCollection = null; #[ORM\Column(length: 255, nullable: true)] private ?string $mainImage = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $body = null; #[ORM\Column(length: 255, nullable: true)] private ?string $customCss = null; #[ORM\Column(nullable: true)] private ?int $sector = null; public function getId(): ?int { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } public function getSlug(): ?string { return $this->slug; } public function getAplication(): ?string { return $this->aplication; } public function setAplication(?string $aplication): self { $this->aplication = $aplication; return $this; } public function getImageCollection(): ?int { return $this->imageCollection; } public function setImageCollection(?int $imageCollection): self { $this->imageCollection = $imageCollection; return $this; } public function getMainImage(): ?string { return $this->mainImage; } public function setMainImage(?string $mainImage): self { $this->mainImage = $mainImage; return $this; } public function getBody(): ?string { return $this->body; } public function setBody(?string $body): self { $this->body = $body; return $this; } public function getCustomCss(): ?string { return $this->customCss; } public function setCustomCss(?string $customCss): self { $this->customCss = $customCss; return $this; } public function getSector(): ?int { return $this->sector; } public function setSector(?int $sector): self { $this->sector = $sector; return $this; } }