galek/doctrine-signys-id-generator

Doctrine id generator for Signys

v1.0.1 2017-09-05 11:46 UTC

README

Doctrine id generator for Signys

Build Status Total Downloads Latest Stable Version License Monthly Downloads

Usage

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="CENKTGM01")
 */
class Product
{
    /**
	 * @ORM\Id
	 * @ORM\Column(type="string", length=18, name="OID$CENKTGM01")
	 * @ORM\GeneratedValue(strategy="CUSTOM")
	 * @ORM\CustomIdGenerator(class="Doctrine\ORM\Id\SignysIdGenerator")
	 */
    protected $id;

    ...
}