[PR #6826] Add Type::GUID to $typeAlias list in EntityGenerator #10156

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

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

State: closed
Merged: Yes


Right now, when generating entities, a column of type 'guid' will generate the following PHPDoc:

/**
 * Get id
 *
 * @return guid
 */
public function getId() {...}

Since guid is not a valid PHP type, this throws a warning in PHPStorm, and I assume most IDEs.

Adding the type to the type alias list fixes the problem.

**Original Pull Request:** https://github.com/doctrine/orm/pull/6826 **State:** closed **Merged:** Yes --- Right now, when generating entities, a column of type 'guid' will generate the following PHPDoc: ``` /** * Get id * * @return guid */ public function getId() {...} ``` Since guid is not a valid PHP type, this throws a warning in PHPStorm, and I assume most IDEs. Adding the type to the type alias list fixes the problem.
admin added the pull-request label 2026-01-22 16:06:37 +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#10156