This commit is contained in:
Xes
2025-08-14 22:41:49 +02:00
parent 2de81ccc46
commit 8ce45119b6
39774 changed files with 4309466 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
<?php
namespace Gedmo\Timestampable;
/**
* This interface is not necessary but can be implemented for
* Entities which in some cases needs to be identified as
* Timestampable
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
interface Timestampable
{
// timestampable expects annotations on properties
/**
* @gedmo:Timestampable(on="create")
* dates which should be updated on insert only
*/
/**
* @gedmo:Timestampable(on="update")
* dates which should be updated on update and insert
*/
/**
* @gedmo:Timestampable(on="change", field="field", value="value")
* dates which should be updated on changed "property"
* value and become equal to given "value"
*/
/**
* @gedmo:Timestampable(on="change", field="field")
* dates which should be updated on changed "property"
*/
/**
* @gedmo:Timestampable(on="change", fields={"field1", "field2"})
* dates which should be updated if at least one of the given fields changed
*/
/**
* example
*
* @gedmo:Timestampable(on="create")
* @Column(type="date")
* $created
*/
}