Tengo este DQL que me da error:
Código PHP:
$role = $this->em->createQuery('SELECT h.role FROM Application\Entity\Histousuario h WHERE (h.id = :id)');
$role->setParameters(array(
':id' => $id
));
Cita:
el error que me muestra es este: * @ORM\ManyToOne(targetEntity="Application\Entity\Ro les")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="role_id", referencedColumnName="id", nullable=true, onDelete="SET NULL")
* })
*/
private $role;
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="role_id", referencedColumnName="id", nullable=true, onDelete="SET NULL")
* })
*/
private $role;
Cita:
Fatal error: Uncaught exception 'Doctrine\ORM\Query\QueryException' with message 'SELECT h.role FROM Application\Entity\Histousuario h WHERE (h.id = :id)' in C:\xampp\htdocs\bcbtram\library\Doctrine\ORM\Query \QueryException.php:39