Hello,
I'm a french student using Doctrine to create an API. I have a database,
and I want Doctrine to generate my entities.
When I use the doctrine orm:convert-mapping command, it seems that Doctrine
doesn't specify in the annotations if an association can be nullable.
Here an example :
This one is supposed to be required (not nullable) in my database :
/**
* @var \Entity\Professions
*
* @ORM\ManyToOne(targetEntity="Entity\Professions", fetch="EAGER")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="idProfessionUser",
referencedColumnName="idProfession")
* })
*/
protected $idprofessionuser;
When I looked for some informations inside the Doctrine files, I found this
part of code (EntityGenerator.php file) :
if (isset($joinColumn['nullable'])) {
$joinColumnAnnot[] = 'nullable=' . ($joinColumn['nullable'] ? 'true' :
'false');
}
Am I missing something ?
Thanks,
Yann
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/doctrine-user/26ede4c5-da6e-445c-8e29-521c22482500n%40googlegroups.com.