/**
  * 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::__toString
  */
 public function test__toString()
 {
     $this->object->setId(8);
     $this->assertEquals("8", $this->object->__toString());
 }