DDC-1084: Unable to make a One-To-Many, Bidirectional with YALM #1357

Closed
opened 2026-01-22 13:11:36 +01:00 by admin · 1 comment
Owner

Originally created by @doctrinebot on GitHub (Mar 28, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user pbrun:

Two YAML description :

inside Application.yml
oneToMany:
ips:
targetEntity: Entities\ApplicationIp
mappedBy: ApplicationAppid
right:
targetEntity: Entities\ApplicationRight
mappedBy: appId

inside ApplicationRight.yml :

manyToOne:
targetEntity: Entities\Application
inversedBy: right
JoinColumn:
name: application_appId
referencedColumnName: appId

When i generate with this command line : php doctrine orm:generate-entities ./
i have this following error :

PHP Fatal error: Undefined class constant 'Doctrine\ORM\Mapping\ClassMetadata::FETCH_E' in D:\PBR\Projet\PAA\Workspace
WebService\lib\Doctrine\ORM\Mapping\Driver\YamlDriver.php on line 307

Fatal error: Undefined class constant 'Doctrine\ORM\Mapping\ClassMetadata::FETCH_E' in D:\PBR\Projet\PAA\Workspace\WebSe
rvice\lib\Doctrine\ORM\Mapping\Driver\YamlDriver.php on line 307

Maybe i have make some mistake but there are not many documentation about the YALM driver and i don't see any solution since few day.

Originally created by @doctrinebot on GitHub (Mar 28, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user pbrun: Two YAML description : inside Application.yml oneToMany: ips: targetEntity: Entities\ApplicationIp mappedBy: ApplicationAppid right: targetEntity: Entities\ApplicationRight mappedBy: appId inside ApplicationRight.yml : manyToOne: targetEntity: Entities\Application inversedBy: right JoinColumn: name: application_appId referencedColumnName: appId When i generate with this command line : php doctrine orm:generate-entities ./ i have this following error : PHP Fatal error: Undefined class constant 'Doctrine\ORM\Mapping\ClassMetadata::FETCH_E' in D:\PBR\Projet\PAA\Workspace\ WebService\lib\Doctrine\ORM\Mapping\Driver\YamlDriver.php on line 307 Fatal error: Undefined class constant 'Doctrine\ORM\Mapping\ClassMetadata::FETCH_E' in D:\PBR\Projet\PAA\Workspace\WebSe rvice\lib\Doctrine\ORM\Mapping\Driver\YamlDriver.php on line 307 Maybe i have make some mistake but there are not many documentation about the YALM driver and i don't see any solution since few day.
admin added the Bug label 2026-01-22 13:11:36 +01:00
admin closed this issue 2026-01-22 13:11:37 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 28, 2011):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Mar 28, 2011): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1357