Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 313 Bytes

File metadata and controls

12 lines (10 loc) · 313 Bytes

To generate a uuid v4 on your entity

use Rami\EntityKitBundle\Common\Interfaces\Uuid\UuidInterface;
use Rami\EntityKitBundle\Entity\Traits\UuidTrait;

class Blog implements UuidInterface 
{
    use UuidTrait;
}

This adds a $uuid variable with getter and setter and generates a uuid v4 for the entity