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.
On Mon, Jan 27, 2014 at 12:12 AM, Marco Pivetta <[email protected]> wrote:
> Doctrine ORM supports cross-database relationships on engines that support
> accessing multiple databases from the same connection.
>
> Marco Pivetta
>
> http://twitter.com/Ocramius
>
> http://ocramius.github.com/
>
>
> On 27 January 2014 02:56, Alberto Viana <[email protected]> wrote:
>
>> Hi,
>>
>> In my project I have 3 databases schemas and I have some entities that
>> use two of them, but when I tried to find an entity by id doctrine return a
>> null object.
>>
>> I am using schema.table in @ORM\Table and I found this page but I believe
>> it is not for Doctrine 2
>> http://www.doctrine-project.org/blog/cross-database-joins.html
>>
>> Therefore I would like to know if doctrine supports cross database
>> relationships?
>>
>> Thank you for your support
>>
>> --
>> 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.
>>
>
> --
> 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.