library revisions
Keep revisions and drafts of Entity data
opifer/revisions
Keep revisions and drafts of Entity data
- Wednesday, October 26, 2016
- by dylanschoenmakers
- Repository
- 2 Watchers
- 1 Stars
- 3,743 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 2 Forks
- 0 Open issues
- 2 Versions
- 6 % Grown
, (*1)
Revisions
Revision Entity example:
``` php
<?php
namespace Entity;, (*2)
use Opifer\Revisions\Mapping\Annotation as Revisions;
use Doctrine\ORM\Mapping as ORM;, (*3)
/**
* @ORM\Table(name="articles")
* @ORM\Entity
*/
class Article
{
/** @ORM\Id @ORM\GeneratedValue @ORM\Column(type="integer") */
private $id;, (*4)
/**
* @Revisions\Revised
* @ORM\Column(length=128)
*/
private $title;
/**
* @Revisions\Revised
* @ORM\Column(type="text")
*/
private $content;
/**
* @Revisions\Draft
*/
private $draft;
}
```, (*5)