Skip to content

Instantly share code, notes, and snippets.

@jlamim jlamim/Categoria.php
Created Jan 16, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.