opifer / revisions
Keep revisions and drafts of Entity data
Installs: 10 187
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 2
Open Issues: 3
Requires
- php: >=5.4
- doctrine/doctrine-bundle: ~1.4
- doctrine/orm: ^2.5.4
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.2.0
- symfony/phpunit-bridge: ~2.7
This package is auto-updated.
Last update: 2024-12-10 17:54:02 UTC
README
Revisions
Revision Entity example:
<?php namespace Entity; use Opifer\Revisions\Mapping\Annotation as Revisions; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Table(name="articles") * @ORM\Entity */ class Article { /** @ORM\Id @ORM\GeneratedValue @ORM\Column(type="integer") */ private $id; /** * @Revisions\Revised * @ORM\Column(length=128) */ private $title; /** * @Revisions\Revised * @ORM\Column(type="text") */ private $content; /** * @Revisions\Draft */ private $draft; }