Hi Jasper, Yes, I did it and you can see the code on the link https://gist.github.com/albertogviana/d5a9508b0213bada3ed7
On Tue, Jan 28, 2014 at 7:55 AM, Jasper N. Brouwer <[email protected]>wrote: > Make sure you map the table-name of all your entities as <schema>.<table>: > > /** > * @Entity > * @Table(name="some_db.some_entity") > */ > class SomeEntity > { > > -- > Jasper N. Brouwer > (@jaspernbrouwer) > > > On 27 Jan 2014, at 16:18, Alberto Viana <[email protected]> wrote: > > > Hi Marco, > > > > When I tried to retrieve a row through the command: > > > > $sample = $this->getEntityManager()->find( > > 'Sample\Entity\Sample', 2 > > ); > > > > Doctrine returns null. > > > > In this table I have an foreign key that point to another schema. I'm > able to insert and update, but I'm not able to retrieve. I'm using MySQL. > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/groups/opt_out. > -- Alberto Guimarães Viana E-mail: [email protected] http://blog.albertoviana.com "Uma pessoa inteligente resolve um problema, um sábio o previne." Albert Einstein -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/groups/opt_out.
