[PR #5794] In EntityGenerator, don't generate a 'get' method if there is an 'is'… #9729

Open
opened 2026-01-22 16:05:14 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/5794

State: closed
Merged: No


… method

Sometimes, particularly for boolean attributes it makes more sense to use getter method names like isSelected() rather than getSelected(). This is supported by other parts of the symfony ecosystem, e.g. PropertyAccessor.

This prevents a duplicate getSelected method being created if I have previously generated a method and renamed it to isSelected.

**Original Pull Request:** https://github.com/doctrine/orm/pull/5794 **State:** closed **Merged:** No --- … method Sometimes, particularly for boolean attributes it makes more sense to use getter method names like `isSelected()` rather than `getSelected()`. This is supported by other parts of the symfony ecosystem, e.g. PropertyAccessor. This prevents a duplicate `getSelected` method being created if I have previously generated a method and renamed it to `isSelected`.
admin added the pull-request label 2026-01-22 16:05:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9729