Changeset 4002 for trunk/tests_old/models
- Timestamp:
- 03/17/08 13:26:34 (10 months ago)
- Location:
- trunk/tests_old/models
- Files:
-
- 2 modified
-
RecordHookTest.php (modified) (1 diff)
-
SoftDeleteTest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests_old/models/RecordHookTest.php
r3701 r4002 8 8 $class->setColumn('name', 'string', null, array('primary' => true)); 9 9 } 10 public function preSave( Doctrine_Event $event)10 public function preSave() 11 11 { 12 12 $this->_messages[] = __FUNCTION__; 13 13 } 14 public function postSave( Doctrine_Event $event)14 public function postSave() 15 15 { 16 16 $this->_messages[] = __FUNCTION__; 17 17 } 18 public function preInsert( Doctrine_Event $event)18 public function preInsert() 19 19 { 20 20 $this->_messages[] = __FUNCTION__; 21 21 } 22 public function postInsert( Doctrine_Event $event)22 public function postInsert() 23 23 { 24 24 $this->_messages[] = __FUNCTION__; 25 25 } 26 public function preUpdate( Doctrine_Event $event)26 public function preUpdate() 27 27 { 28 28 $this->_messages[] = __FUNCTION__; 29 29 } 30 public function postUpdate( Doctrine_Event $event)30 public function postUpdate() 31 31 { 32 32 $this->_messages[] = __FUNCTION__; 33 33 } 34 public function preDelete( Doctrine_Event $event)34 public function preDelete() 35 35 { 36 36 $this->_messages[] = __FUNCTION__; 37 37 } 38 public function postDelete( Doctrine_Event $event)38 public function postDelete() 39 39 { 40 40 $this->_messages[] = __FUNCTION__; -
trunk/tests_old/models/SoftDeleteTest.php
r3701 r4002 8 8 $class->setColumn('deleted', 'boolean', 1); 9 9 } 10 public function preDelete(Doctrine_Event $event)10 /*public function preDelete() 11 11 { 12 12 $event->skipOperation(); 13 13 } 14 public function postDelete( Doctrine_Event $event)14 public function postDelete() 15 15 { 16 16 $this->deleted = true; 17 17 18 18 $this->save(); 19 } 19 }*/ 20 20 }