mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3384: [GH-1180] Fix for no dot on Class Names #4182
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Nov 11, 2014).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of sinner:
Url: https://github.com/doctrine/doctrine2/pull/1180
Message:
If you work with PostgreSQL Schemas, You should filter the names of table to generate Correct name for PHP Classes. This way allow not write dots (.) as part of the Class Name.
In addition I have added two properties in which data from a table schema and namespace of a class are stored, this is useful when working with PostgreSQL Schemas.
Additionally, there is a variable ($schema) that must be contained in the class "Doctrine\DBAL\Schema\Table" on an $schema possible property but this is not available. Or can be the value of "name" property of the Class "Doctrine\DBAL\Schema\SchemaConfig". (This last is recomended)
This is a fix because Doctrine entityGenerate proccess is generating the name of PHP classes with dots (.) when you work with schemas on PostgreSQL. The Name of Classes on PHP can not have dot on its Name. Therefore Doctrine2 can't generate PHP Classes with dots on its names.
These data are also placed in the metadata.
@doctrinebot commented on GitHub (Nov 11, 2014):
@doctrinebot commented on GitHub (Nov 11, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1180] was closed:
https://github.com/doctrine/doctrine2/pull/1180
@doctrinebot commented on GitHub (Nov 11, 2014):
Issue was closed with resolution "Duplicate"
@doctrinebot commented on GitHub (Nov 11, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1180] was assigned:
https://github.com/doctrine/doctrine2/pull/1180