/**
  * {@inheritDoc}
  */
 public function getId()
 {
     if ($this->__isInitialized__ === false) {
         return (int) parent::getId();
     }
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', array());
     return parent::getId();
 }
예제 #2
0
 /**
  * Test that Id is null at the beginning.
  */
 public function testGetId()
 {
     $this->assertNull($this->media->getId());
 }