Advertisement
PabloMartinezfr10

Erro Doctrine

Nov 18th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.87 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Application\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8.  * @ORM\Entity
  9.  */
  10. class Livros {
  11.  
  12.     /**
  13.     * @ORM\Id
  14.     * @ORM\GeneratedValue(strategy="AUTO")
  15.     * @ORM\Column(type="integer")
  16.     */
  17.     private $isbn;
  18.  
  19.     /**
  20.      * @ORM\Column(type="integer", length=15)
  21.      */
  22.     private $autor;
  23.  
  24.     /**
  25.      * @ORM\Column(type="string", length=50)
  26.      */
  27.     private $titulo;
  28.  
  29.     /**
  30.      * @ORM\Column(type="string", length=50)
  31.      */
  32.     private $categoria;
  33.  
  34.     /**
  35.      * @ORM\Column(type="string", length=50)
  36.      */
  37.     private $editora;
  38.  
  39.     /**
  40.      * @ORM\Column(type="string", length=50)
  41.      */
  42.     private $dtPublicacao;
  43.  
  44.     /**
  45.      * @ORM\Column(type="date")
  46.      */
  47.     private $qtdLivros;
  48.  
  49.     /**
  50.      * @ORM\Column(type="integer")
  51.      */
  52.     function getIsbn() {
  53.         return $this->isbn;
  54.     }
  55.  
  56.     function getAutor() {
  57.         return $this->autor;
  58.     }
  59.  
  60.     function getTitulo() {
  61.         return $this->titulo;
  62.     }
  63.  
  64.     function getCategoria() {
  65.         return $this->categoria;
  66.     }
  67.  
  68.     function getEditora() {
  69.         return $this->editora;
  70.     }
  71.  
  72.     function getDtPublicacao() {
  73.         return $this->dtPublicacao;
  74.     }
  75.  
  76.     function getQtdLivros() {
  77.         return $this->qtdLivros;
  78.     }
  79.  
  80.     function setIsbn($isbn) {
  81.         $this->isbn = $isbn;
  82.     }
  83.  
  84.     function setAutor($autor) {
  85.         $this->autor = $autor;
  86.     }
  87.  
  88.     function setTitulo($titulo) {
  89.         $this->titulo = $titulo;
  90.     }
  91.  
  92.     function setCategoria($categoria) {
  93.         $this->categoria = $categoria;
  94.     }
  95.  
  96.     function setEditora($editora) {
  97.         $this->editora = $editora;
  98.     }
  99.  
  100.     function setDtPublicacao($dtPublicacao) {
  101.         $this->dtPublicacao = $dtPublicacao;
  102.     }
  103.  
  104.     function setQtdLivros($qtdLivros) {
  105.         $this->qtdLivros = $qtdLivros;
  106.     }
  107. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement