DDC-1319: AnnotationDriver is not able to find the FETCH_EXTRA_LAZY constant in ClassMetadata (and it is in superior ClassMetadataInfo) #1657

Closed
opened 2026-01-22 13:21:22 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 5, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user teuzz:

PHP Warning: constant(): Couldn't find constant Doctrine\ORM\Mapping\ClassMetadata::FETCH_EXTRA_LAZY in {...}/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php on line 304

  • @OneToMany(targetEntity="Photos", mappedBy="owner", fetch="EXTRA_LAZY")
Originally created by @doctrinebot on GitHub (Aug 5, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user teuzz: PHP Warning: constant(): Couldn't find constant Doctrine\ORM\Mapping\ClassMetadata::FETCH_EXTRA_LAZY in {...}/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php on line 304 - @OneToMany(targetEntity="Photos", mappedBy="owner", fetch="EXTRA_LAZY")
admin added the Bug label 2026-01-22 13:21:22 +01:00
admin closed this issue 2026-01-22 13:21:23 +01:00
Author
Owner

@doctrinebot commented on GitHub (Aug 6, 2011):

Comment created by @beberlei:

i don't know how this could happen. This works for me without notice.

@doctrinebot commented on GitHub (Aug 6, 2011): Comment created by @beberlei: i don't know how this could happen. This works for me without notice.
Author
Owner

@doctrinebot commented on GitHub (Aug 9, 2011):

Comment created by teuzz:

Still experiencing this :/. I'll try to fetch a more detailed stack trace and provide more information.

@doctrinebot commented on GitHub (Aug 9, 2011): Comment created by teuzz: Still experiencing this :/. I'll try to fetch a more detailed stack trace and provide more information.
Author
Owner

@doctrinebot commented on GitHub (Sep 13, 2011):

Comment created by teuzz:

It seems that I'm no longer able to reproduce that :)
Sorry for bothering you

@doctrinebot commented on GitHub (Sep 13, 2011): Comment created by teuzz: It seems that I'm no longer able to reproduce that :) Sorry for bothering you
Author
Owner

@doctrinebot commented on GitHub (Sep 13, 2011):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Sep 13, 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#1657