Application\Sonata\UserBundle\Entity\User::getId PHP Method

getId() public method

Get id
public getId ( ) : integer
return integer $id
    public function getId()
    {
        return $this->id;
    }

Usage Example

Esempio n. 1
0
 /**
  * Test constructor.
  *
  * @covers Application\Sonata\UserBundle\Entity\User::__construct()
  */
 public function testConstruct()
 {
     $this->object = new UserEntity();
     $this->assertNull($this->object->getId());
     $this->assertInstanceOf('Doctrine\\Common\\Collections\\ArrayCollection', $this->object->getOwnedAnnuaires());
     $this->assertEquals(0, $this->object->getOwnedAnnuaires()->count());
     $this->assertInstanceOf('Doctrine\\Common\\Collections\\ArrayCollection', $this->object->getOwnedSites());
     $this->assertEquals(0, $this->object->getOwnedSites()->count());
 }
All Usage Examples Of Application\Sonata\UserBundle\Entity\User::getId