Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public function testPostDelete()
 {
     $author = new TestAuthor();
     $author->setFirstName("bogus");
     $author->setLastName("Lastname");
     $author->save();
     $author->delete();
     $this->assertEquals("Post-Deleted", $author->getLastName());
 }
Exemplo n.º 4
0
 public function preSave(ConnectionInterface $con = null)
 {
     parent::preSave($con);
     $this->setEmail("*****@*****.**");
     return false;
 }