Show
Ignore:
Timestamp:
03/17/08 13:26:34 (10 months ago)
Author:
romanb
Message:

refactorings

Location:
trunk/tests_old/models
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests_old/models/RecordHookTest.php

    r3701 r4002  
    88        $class->setColumn('name', 'string', null, array('primary' => true)); 
    99    } 
    10     public function preSave(Doctrine_Event $event) 
     10    public function preSave() 
    1111    { 
    1212        $this->_messages[] = __FUNCTION__; 
    1313    } 
    14     public function postSave(Doctrine_Event $event) 
     14    public function postSave() 
    1515    { 
    1616        $this->_messages[] = __FUNCTION__; 
    1717    } 
    18     public function preInsert(Doctrine_Event $event) 
     18    public function preInsert() 
    1919    { 
    2020        $this->_messages[] = __FUNCTION__; 
    2121    } 
    22     public function postInsert(Doctrine_Event $event) 
     22    public function postInsert() 
    2323    { 
    2424        $this->_messages[] = __FUNCTION__; 
    2525    } 
    26     public function preUpdate(Doctrine_Event $event) 
     26    public function preUpdate() 
    2727    { 
    2828        $this->_messages[] = __FUNCTION__; 
    2929    } 
    30     public function postUpdate(Doctrine_Event $event) 
     30    public function postUpdate() 
    3131    { 
    3232        $this->_messages[] = __FUNCTION__; 
    3333    } 
    34     public function preDelete(Doctrine_Event $event) 
     34    public function preDelete() 
    3535    { 
    3636        $this->_messages[] = __FUNCTION__; 
    3737    } 
    38     public function postDelete(Doctrine_Event $event) 
     38    public function postDelete() 
    3939    { 
    4040        $this->_messages[] = __FUNCTION__; 
  • trunk/tests_old/models/SoftDeleteTest.php

    r3701 r4002  
    88        $class->setColumn('deleted', 'boolean', 1); 
    99    } 
    10     public function preDelete(Doctrine_Event $event) 
     10    /*public function preDelete() 
    1111    { 
    1212        $event->skipOperation(); 
    1313    } 
    14     public function postDelete(Doctrine_Event $event) 
     14    public function postDelete() 
    1515    { 
    1616        $this->deleted = true; 
    1717 
    1818        $this->save(); 
    19     } 
     19    }*/ 
    2020}