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.

Reply via email to