getter name exception #5165

Closed
opened 2026-01-22 15:00:16 +01:00 by admin · 4 comments
Owner

Originally created by @RomainSanchez on GitHub (Jun 21, 2016).

Originally assigned to: @Ocramius on GitHub.

Hi i encountered an exception with how doctrine automatically calls getters and setters.My entity has a collection of "species" and as the word is spelled species in the singular and plural doctrine is not happy with my method names.It is looking for specieses or specy.What is the best workaround

Originally created by @RomainSanchez on GitHub (Jun 21, 2016). Originally assigned to: @Ocramius on GitHub. Hi i encountered an exception with how doctrine automatically calls getters and setters.My entity has a collection of "species" and as the word is spelled species in the singular and plural doctrine is not happy with my method names.It is looking for specieses or specy.What is the best workaround
admin added the Invalid label 2026-01-22 15:00:16 +01:00
admin closed this issue 2026-01-22 15:00:20 +01:00
Author
Owner

@guilhermeblanco commented on GitHub (Jun 21, 2016):

Create a test on http://github.com/doctrine/inflector project and address the issue there... =)

@guilhermeblanco commented on GitHub (Jun 21, 2016): Create a test on http://github.com/doctrine/inflector project and address the issue there... =)
Author
Owner

@Ocramius commented on GitHub (Jun 21, 2016):

Note: doctrine does not call getters or setters ;-)

Is this about the entity generator?

@Ocramius commented on GitHub (Jun 21, 2016): Note: doctrine does not call getters or setters ;-) Is this about the entity generator?
Author
Owner

@RomainSanchez commented on GitHub (Jun 22, 2016):

Right, my bad.I'll look into Symfony's PropertyAccessor

@RomainSanchez commented on GitHub (Jun 22, 2016): Right, my bad.I'll look into Symfony's PropertyAccessor
Author
Owner

@Ocramius commented on GitHub (Jun 30, 2016):

@RomainSanchez if this is a runtime concern, then yes, you need to check there :-)

Closing here as invalid

@Ocramius commented on GitHub (Jun 30, 2016): @RomainSanchez if this is a runtime concern, then yes, you need to check there :-) Closing here as `invalid`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5165