Commit f8460ba2904eff723b450627d6ccad4007c15d8e
1 parent
5798182207
Exists in
master
actualizado el git ignore para los archivos temporales creados en linux
Showing
2 changed files
with
90 additions
and
0 deletions
Show diff stats
.gitignore
src/AppBundle/Entity/TutoresAscenso.php
| @@ -0,0 +1,84 @@ | @@ -0,0 +1,84 @@ | ||
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * Created by PhpStorm. | ||
| 4 | + * User: Wilmer Ramones | ||
| 5 | + * Date: 29/06/16 | ||
| 6 | + * Time: 07:52 AM | ||
| 7 | + */ | ||
| 8 | + | ||
| 9 | +namespace AppBundle\Entity; | ||
| 10 | + | ||
| 11 | +use Doctrine\ORM\Mapping as ORM; | ||
| 12 | + | ||
| 13 | +/** | ||
| 14 | + * Genero | ||
| 15 | + * | ||
| 16 | + * @ORM\Table(name="genero", uniqueConstraints={@ORM\UniqueConstraint(name="uq_nombre", columns={"nombre"})}) | ||
| 17 | + * @ORM\Entity | ||
| 18 | + */ | ||
| 19 | +class Genero | ||
| 20 | +{ | ||
| 21 | + /** | ||
| 22 | + * @var string | ||
| 23 | + * | ||
| 24 | + * @ORM\Column(name="nombre", type="string", length=10, nullable=false, options={"comment" = "Nombre del genero"}) | ||
| 25 | + */ | ||
| 26 | + private $nombre; | ||
| 27 | + | ||
| 28 | + /** | ||
| 29 | + * @var integer | ||
| 30 | + * | ||
| 31 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador del genero"}) | ||
| 32 | + * @ORM\Id | ||
| 33 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
| 34 | + * @ORM\SequenceGenerator(sequenceName="genero_id_seq", allocationSize=1, initialValue=1) | ||
| 35 | + */ | ||
| 36 | + private $id; | ||
| 37 | + | ||
| 38 | + | ||
| 39 | + | ||
| 40 | + /** | ||
| 41 | + * Set nombre | ||
| 42 | + * | ||
| 43 | + * @param string $nombre | ||
| 44 | + * @return Genero | ||
| 45 | + */ | ||
| 46 | + public function setNombre($nombre) | ||
| 47 | + { | ||
| 48 | + $this->nombre = $nombre; | ||
| 49 | + | ||
| 50 | + return $this; | ||
| 51 | + } | ||
| 52 | + | ||
| 53 | + /** | ||
| 54 | + * Get nombre | ||
| 55 | + * | ||
| 56 | + * @return string | ||
| 57 | + */ | ||
| 58 | + public function getNombre() | ||
| 59 | + { | ||
| 60 | + return $this->nombre; | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + /** | ||
| 64 | + * Get id | ||
| 65 | + * | ||
| 66 | + * @return integer | ||
| 67 | + */ | ||
| 68 | + public function getId() | ||
| 69 | + { | ||
| 70 | + return $this->id; | ||
| 71 | + } | ||
| 72 | + | ||
| 73 | + /** | ||
| 74 | + * Get nombre | ||
| 75 | + * | ||
| 76 | + * @return string | ||
| 77 | + */ | ||
| 78 | + public function __toString() | ||
| 79 | + { | ||
| 80 | + return $this->nombre; | ||
| 81 | + } | ||
| 82 | + | ||
| 83 | + | ||
| 84 | +} |