for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ETNA\Doctrine\Extensions;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Column;
/**
* Le trait qui ajoute à une entité un ID tout ce qu'il y'a de plus classique, sauf que celui la est unsigned
*/
trait UnsignedAutoIncrementID
{
* @var integer
*
* @Id @GeneratedValue
* @Column(type="integer", name="id", options={"unsigned"=true})
protected $id;
* Retourne l'ID de l'entité concernée
* @return integer
public function getId()
return $this->id;
}
* Sette l'id de l'entité concernée.
* Mais en fait c'est une blague, on veut pas faire ca :)
* @param integer $id Le nouvel ID
public function setId($id)
$id
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
throw new \Exception(__METHOD__ . " : method not implemented");
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.