2017 © Pedro Peláez
 

library revisions

Keep revisions and drafts of Entity data

image

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

The README.md

Build Status, (*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)

The Versions

26/10 2016