Created
January 16, 2017 19:57
-
-
Save jlamim/58300f1d8e3bcbe13f12597d9d07a8a4 to your computer and use it in GitHub Desktop.
Doctrine e CodeIgniter - Model/Entity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Entity; | |
/** | |
* | |
* @Entity | |
* @Table(name="categoria") | |
*/ | |
class Categoria | |
{ | |
/** | |
* @Id | |
* @GeneratedValue(strategy="AUTO") | |
* @Column(type="integer", name="idCategoria") | |
*/ | |
protected $id; | |
/** | |
* @Column(type="string", name="nomeCategoria") | |
*/ | |
protected $nome; | |
public function getId() | |
{ | |
return $this->id; | |
} | |
public function getNome() | |
{ | |
return $this->nome; | |
} | |
public function setNome($nome) | |
{ | |
$this->nome = $nome; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment