/**
  * Find the seo information for the given entity
  *
  * @param AbstractEntity $entity
  *
  * @return Seo
  */
 public function findFor(AbstractEntity $entity)
 {
     return $this->findOneBy(array('refId' => $entity->getId(), 'refEntityName' => ClassLookup::getClass($entity)));
 }
 /**
  * Set reference entity
  *
  * @param AbstractEntity $entity
  *
  * @return AclChangeset
  */
 public function setRef(AbstractEntity $entity)
 {
     $this->setRefId($entity->getId());
     $this->setRefEntityName(ClassLookup::getClass($entity));
     return $this;
 }
 /**
  * @covers Kunstmaan\AdminBundle\Entity\AbstractEntity::getId
  * @covers Kunstmaan\AdminBundle\Entity\AbstractEntity::setId
  */
 public function testGetSetId()
 {
     $this->object->setId(5);
     $this->assertEquals(5, $this->object->getId());
 }