Re: [doctrine-user] Unexpected differences in Result Set data structure for similar DQL statements

2016-05-16 Thread Dennis Fedco
Thanks. I have tried the new DQL and results are as follows: - I now have a one-dimensional array with 4 indices, each holding the "Item" Entity - One "Product" entity is loaded as part of the above entity (one for each index location), under "product" member variable. - The

[doctrine-user] Best Practice for Retrieving records by using Foreign Key

2016-05-16 Thread Dennis Fedco
I found this: http://pietervogelaar.nl/doctrine-2-use-foreign-key-as-field-in-dql The posts in the link are from 2-3 years ago and recommend using an IDENTITY function. I am curious if using IDENTITY is still a recommended practice? I find it that in some of my code I have been unwittingly

[doctrine-user] How to best define (or handle) a foreign keys in legacy tables that were not handled by Doctrine's "convert-mapping"/"generate-entities"?

2016-05-16 Thread Dennis Fedco
I am working with a legacy codebase, and a database that has no foreign key constraints defined, nor has referential integrity. And what I'm doing is I am modeling my Doctrine entities in PHP to match MySQL tables, so that I can use Doctrine inside PHP code. And so first I build my Entities to

[doctrine-user] why php bin/console doctrine:generate:entities XBundle:YClass no work

2016-05-16 Thread aminihochemnitz
id; } /** * Set name * * @param string $name * * @return tesst */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName()

Re: [doctrine-user] is not a valid entity or mapped super class.

2016-05-16 Thread aminihochemnitz
> > > Am Montag, 16. Mai 2016 12:21:19 UTC+2 schrieb Marco Pivetta: > > Seems like you mis-configured your metadata drivers. > > Also: why do you need to generate entities, if you already wrote the > entity's code? > > Marco Pivetta > > http://twitter.com/Ocramius > >

Re: [doctrine-user] is not a valid entity or mapped super class.

2016-05-16 Thread Marco Pivetta
Seems like you mis-configured your metadata drivers. Also: why do you need to generate entities, if you already wrote the entity's code? Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 16 May 2016 at 12:18, wrote: > > namespace

[doctrine-user] is not a valid entity or mapped super class.

2016-05-16 Thread aminihochemnitz
id; } /** * Set name * * @param string $name * * @return Products */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function