init without trunk
This commit is contained in:
parent
ed24ac4994
commit
bb809e7233
14652 changed files with 177862 additions and 94817 deletions
50
vendor/gedmo/doctrine-extensions/lib/Gedmo/IpTraceable/IpTraceable.php
vendored
Normal file
50
vendor/gedmo/doctrine-extensions/lib/Gedmo/IpTraceable/IpTraceable.php
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
|
||||
namespace Gedmo\IpTraceable;
|
||||
|
||||
/**
|
||||
* This interface is not necessary but can be implemented for
|
||||
* Entities which in some cases needs to be identified as
|
||||
* IpTraceable
|
||||
*
|
||||
* @author Pierre-Charles Bertineau <pc.bertineau@alterphp.com>
|
||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
interface IpTraceable
|
||||
{
|
||||
// ipTraceable expects annotations on properties
|
||||
|
||||
/**
|
||||
* @gedmo:IpTraceable(on="create")
|
||||
* strings which should be updated on insert only
|
||||
*/
|
||||
|
||||
/**
|
||||
* @gedmo:IpTraceable(on="update")
|
||||
* strings which should be updated on update and insert
|
||||
*/
|
||||
|
||||
/**
|
||||
* @gedmo:IpTraceable(on="change", field="field", value="value")
|
||||
* strings which should be updated on changed "property"
|
||||
* value and become equal to given "value"
|
||||
*/
|
||||
|
||||
/**
|
||||
* @gedmo:IpTraceable(on="change", field="field")
|
||||
* strings which should be updated on changed "property"
|
||||
*/
|
||||
|
||||
/**
|
||||
* @gedmo:IpTraceable(on="change", fields={"field1", "field2"})
|
||||
* strings which should be updated if at least one of the given fields changed
|
||||
*/
|
||||
|
||||
/**
|
||||
* example
|
||||
*
|
||||
* @gedmo:IpTraceable(on="create")
|
||||
* @Column(type="string")
|
||||
* $created
|
||||
*/
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue