Discussion:
[doctrine-user] Wrong Entity names generated from database (postgres with diferent schemas)
Dunior Socarras
2018-09-20 04:25:26 UTC
Permalink
I'm using Doctrine 2.5, I have a database in PostgreSQL 6 and my tables are
inside diferent schemas.
When I excecute the command "doctrine orm:convert-mapping --from-database
annotation", Doctrine generate the entities but with a wrong name, ex.: if
the Schema name in PostgreSQL is "people" and a Table name inside that
schema is "job", Doctrine generates a file named People.job.php and the
class name is People.job. It also doesn't inlcude the schema name inside
the @Table annotation. I need help, thanks
--
You received this message because you are subscribed to the Google Groups "doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doctrine-user+***@googlegroups.com.
To post to this group, send email to doctrine-***@googlegroups.com.
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.
Marco Pivetta
2018-09-20 18:13:39 UTC
Permalink
Did you already try with newest DBAL/ORM?
Post by Dunior Socarras
I'm using Doctrine 2.5, I have a database in PostgreSQL 6 and my tables
are inside diferent schemas.
When I excecute the command "doctrine orm:convert-mapping --from-database
annotation", Doctrine generate the entities but with a wrong name, ex.: if
the Schema name in PostgreSQL is "people" and a Table name inside that
schema is "job", Doctrine generates a file named People.job.php and the
class name is People.job. It also doesn't inlcude the schema name inside
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doctrine-user+***@googlegroups.com.
To post to this group, send email to doctrine-***@googlegroups.com.
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.
Dunior Socarras
2018-09-20 22:48:35 UTC
Permalink
Yes, I just tried with dbal-2.8.0 and orm-2.6.2, but some errors came out
because I'm using PHP 5.6 and in this versions of orm and dbal are using
"??" operator and return types for functions which are PHP 7 new features.
I would like to know if this bug is fixed in a version of orm and dbal for
PHP 5.6

Thanks

El jueves, 20 de septiembre de 2018, 0:25:26 (UTC-4), Dunior Socarras
Post by Dunior Socarras
I'm using Doctrine 2.5, I have a database in PostgreSQL 6 and my tables
are inside diferent schemas.
When I excecute the command "doctrine orm:convert-mapping --from-database
annotation", Doctrine generate the entities but with a wrong name, ex.: if
the Schema name in PostgreSQL is "people" and a Table name inside that
schema is "job", Doctrine generates a file named People.job.php and the
class name is People.job. It also doesn't inlcude the schema name inside
--
You received this message because you are subscribed to the Google Groups "doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doctrine-user+***@googlegroups.com.
To post to this group, send email to doctrine-***@googlegroups.com.
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.
Marco Pivetta
2018-09-20 22:53:55 UTC
Permalink
No, you will just need to upgrade your stack: PHP 5.6 is definitely *NOT*
supported anymore.

On 21 Sep 2018 00:48, "Dunior Socarras" <***@gmail.com> wrote:

Yes, I just tried with dbal-2.8.0 and orm-2.6.2, but some errors came out
because I'm using PHP 5.6 and in this versions of orm and dbal are using
"??" operator and return types for functions which are PHP 7 new features.
I would like to know if this bug is fixed in a version of orm and dbal for
PHP 5.6

Thanks


El jueves, 20 de septiembre de 2018, 0:25:26 (UTC-4), Dunior Socarras
Post by Dunior Socarras
I'm using Doctrine 2.5, I have a database in PostgreSQL 6 and my tables
are inside diferent schemas.
When I excecute the command "doctrine orm:convert-mapping --from-database
annotation", Doctrine generate the entities but with a wrong name, ex.: if
the Schema name in PostgreSQL is "people" and a Table name inside that
schema is "job", Doctrine generates a file named People.job.php and the
class name is People.job. It also doesn't inlcude the schema name inside
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to doctrine-user+***@googlegroups.com.
To post to this group, send email to doctrine-***@googlegroups.com.
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doctrine-user+***@googlegroups.com.
To post to this group, send email to doctrine-***@googlegroups.com.
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.
Dunior Socarras
2018-09-21 02:30:37 UTC
Permalink
After you said that PHP 5.6 was not supported anymore, I installed a new
server with PHP7, I integrated all doctrine latest projects from github so
now I have an updated doctrine, I ran the command again and the problem
persists.

El jueves, 20 de septiembre de 2018, 18:54:11 (UTC-4), Marco Pivetta
Post by Marco Pivetta
No, you will just need to upgrade your stack: PHP 5.6 is definitely *NOT*
supported anymore.
Yes, I just tried with dbal-2.8.0 and orm-2.6.2, but some errors came out
because I'm using PHP 5.6 and in this vintegratedersions of orm and dbal
are using "??" operator and return types for functions which are PHP 7 new
features.
I would like to know if this bug is fixed in a version of orm and dbal for
PHP 5.6
Thanks
El jueves, 20 de septiembre de 2018, 0:25:26 (UTC-4), Dunior Socarras
Post by Dunior Socarras
I'm using Doctrine 2.5, I have a database in PostgreSQL 6 and my tables
are inside diferent schemas.
When I excecute the command "doctrine orm:convert-mapping --from-database
annotation", Doctrine generate the entities but with a wrong name, ex.: if
the Schema name in PostgreSQL is "people" and a Table name inside that
schema is "job", Doctrine generates a file named People.job.php and the
class name is People.job. It also doesn't inlcude the schema name inside
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an
<javascript:>.
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doctrine-user+***@googlegroups.com.
To post to this group, send email to doctrine-***@googlegroups.com.
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.
Marco Pivetta
2018-09-21 09:38:35 UTC
Permalink
Given that, and that you are running the latest version, I can only assume
that this needs to be turned into an issue and evaluated to see if it is a
bug: can you open an issue with an example DB DDL that triggers this
behaviour?
Post by Dunior Socarras
After you said that PHP 5.6 was not supported anymore, I installed a new
server with PHP7, I integrated all doctrine latest projects from github so
now I have an updated doctrine, I ran the command again and the problem
persists.
El jueves, 20 de septiembre de 2018, 18:54:11 (UTC-4), Marco Pivetta
Post by Marco Pivetta
No, you will just need to upgrade your stack: PHP 5.6 is definitely *NOT*
supported anymore.
Yes, I just tried with dbal-2.8.0 and orm-2.6.2, but some errors came out
because I'm using PHP 5.6 and in this vintegratedersions of orm and dbal
are using "??" operator and return types for functions which are PHP 7 new
features.
I would like to know if this bug is fixed in a version of orm and dbal
for PHP 5.6
Thanks
El jueves, 20 de septiembre de 2018, 0:25:26 (UTC-4), Dunior Socarras
Post by Dunior Socarras
I'm using Doctrine 2.5, I have a database in PostgreSQL 6 and my tables
are inside diferent schemas.
When I excecute the command "doctrine orm:convert-mapping
--from-database annotation", Doctrine generate the entities but with a
wrong name, ex.: if the Schema name in PostgreSQL is "people" and a Table
name inside that schema is "job", Doctrine generates a file named
People.job.php and the class name is People.job. It also doesn't inlcude
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doctrine-user+***@googlegroups.com.
To post to this group, send email to doctrine-***@googlegroups.com.
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.
Loading...