Exemple #1
0
 public function preSave(PropelPDO $con = null)
 {
     parent::preSave($con);
     $this->setEmail("*****@*****.**");
     return false;
 }
 public function preDelete(ConnectionInterface $con = null)
 {
     parent::preDelete($con);
     $this->setFirstName('Pre-Deleted');
     return false;
 }
 public function testPostDelete()
 {
     $author = new TestAuthor();
     $author->setFirstName("bogus");
     $author->setLastName("Lastname");
     $author->save();
     $author->delete();
     $this->assertEquals("Post-Deleted", $author->getLastName());
 }
 public function preSave(ConnectionInterface $con = null)
 {
     parent::preSave($con);
     $this->setEmail("*****@*****.**");
     return false;
 }