opifer/revisions

Keep revisions and drafts of Entity data

0.1 2016-03-24 11:48 UTC

This package is auto-updated.

Last update: 2021-11-10 11:14:28 UTC


README

Build Status

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;
}