/**
  * {@inheritDoc}
  */
 public function getId()
 {
     if ($this->__isInitialized__ === false) {
         return (int) parent::getId();
     }
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', array());
     return parent::getId();
 }
Ejemplo n.º 2
0
 public function testLanguageInitialState()
 {
     $user = new Language();
     $this->assertNull($user->getId(), '"id" should initially be null');
     $this->assertNull($user->getName(), '"name" should initially be null');
 }