You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yunai39 edited this page Mar 5, 2014
·
3 revisions
This is how you should create the entity for the database association
In a bundle in the folder entity create a new Entity named for exemple MyUserLdap
<?php
namespace Main\SecurityBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Yunai39\Bundle\SimpleLdapBundle\Entity\UserLdap;
/**
* @ORM\Entity
* @ORM\Table(name="user_ldap")
*/
class MyUserLdap extends UserLdap {
/** @ORM\Column(type="integer") */
protected $id;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
}`
Then in the folder Ressource/config/doctrine of your bundle create the file MyUserLdap.orm.yml