1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/tests_old/models/SoftDeleteTest.php

21 lines
525 B
PHP

<?php
class SoftDeleteTest extends Doctrine_Entity
{
public static function initMetadata($class)
{
$class->setColumn('name', 'string', null, array('primary' => true));
$class->setColumn('something', 'string', '25', array('notnull' => true, 'unique' => true));
$class->setColumn('deleted', 'boolean', 1);
}
/*public function preDelete()
{
$event->skipOperation();
}
public function postDelete()
{
$this->deleted = true;
$this->save();
}*/
}