Skip to content

Instantly share code, notes, and snippets.

@jlamim
Created January 16, 2017 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlamim/58300f1d8e3bcbe13f12597d9d07a8a4 to your computer and use it in GitHub Desktop.
Save jlamim/58300f1d8e3bcbe13f12597d9d07a8a4 to your computer and use it in GitHub Desktop.
Doctrine e CodeIgniter - Model/Entity
<?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