Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity(repositoryClass="App\Repository\ArticleRepository")
- */
- class Article
- {
- /**
- * @ORM\Id()
- * @ORM\GeneratedValue()
- * @ORM\Column(type="integer")
- */
- private $id;
- public function getId(): ?int
- {
- return $this->id;
- }
- /**
- * ORM\Column(type="text")
- */
- private $body;
- /**
- * @ORM\Column(type="text", length=100)
- */
- private $title;
- // getters & setters
- public function getTitle() {
- return $this->title;;
- }
- public function setTitle($title) {
- $this->title = $title;
- }
- public function getBody() {
- return $this->body;;
- }
- public function setBody($body) {
- $this->title = $body;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement