Example #1
0
 public function testDoPrePersist()
 {
     $item = new NavigationItem();
     $item->doPrePersist();
     $this->assertInstanceOf('DateTime', $item->getCreatedAt());
     $this->assertInstanceOf('DateTime', $item->getUpdatedAt());
     $this->assertEquals($item->getCreatedAt(), $item->getUpdatedAt());
 }
 /**
  * {@inheritDoc}
  */
 public function doPrePersist()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'doPrePersist', array());
     return parent::doPrePersist();
 }