SHARE
TWEET

Untitled

a guest Jun 19th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. namespace App\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8.  * @ORM\Entity(repositoryClass="App\Repository\ArticleRepository")
  9.  */
  10. class Article
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\GeneratedValue()
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.  
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.    
  24.     /**
  25.      * ORM\Column(type="text")
  26.      */
  27.     private $body;
  28.    
  29.     /**
  30.      * @ORM\Column(type="text", length=100)
  31.      */
  32.     private $title;
  33.  
  34.  
  35.     // getters & setters
  36.     public function getTitle() {
  37.         return $this->title;;
  38.     }
  39.  
  40.     public function setTitle($title) {
  41.         $this->title = $title;
  42.     }
  43.  
  44.     public function getBody() {
  45.         return $this->body;;
  46.     }
  47.  
  48.     public function setBody($body) {
  49.         $this->title = $body;
  50.     }
  51.  
  52.    
  53.  
  54. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top