/**
  * {@inheritDoc}
  */
 public function getUpdatedAt()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedAt', array());
     return parent::getUpdatedAt();
 }
예제 #2
0
 /**
  * @covers Core\Entity\ContactLesson::refreshTimeStamps
  */
 public function testRefreshTimeStamps()
 {
     $contactLesson = new ContactLesson($this->mockEntityManager);
     $contactLesson->refreshTimeStamps();
     $createdAt = $contactLesson->getCreatedAt();
     $this->assertNotNull($createdAt);
     $this->assertNull($contactLesson->getUpdatedAt());
     $contactLesson->refreshTimeStamps();
     $updatedAt = $contactLesson->getUpdatedAt();
     $this->assertNotNull($updatedAt);
     $this->assertEquals($createdAt, $contactLesson->getCreatedAt());
 }