From 4583fbd2e1f29308bc8da816d889bbe6f9a6fa60 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 19 Dec 2017 17:45:53 +0100 Subject: [PATCH] Document that Doctrine associations don't work across different entity managers --- doctrine/multiple_entity_managers.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doctrine/multiple_entity_managers.rst b/doctrine/multiple_entity_managers.rst index 50acceddf1a..949c41112f5 100644 --- a/doctrine/multiple_entity_managers.rst +++ b/doctrine/multiple_entity_managers.rst @@ -16,6 +16,12 @@ entity manager that connects to another database might handle the rest. usually required. Be sure you actually need multiple entity managers before adding in this layer of complexity. +.. caution:: + + Entities cannot define associations across different entity managers. If you + need that, there are `several alternatives `_ + that require some custom setup. + The following configuration code shows how you can configure two entity managers: .. configuration-block::