From c9f19540448a07ab63fc9d9bf29765725c3fb5dd Mon Sep 17 00:00:00 2001 From: beberlei Date: Sat, 3 Apr 2010 07:09:20 +0000 Subject: [PATCH] [2.0] DDC-342 - Throw Exception with notice in case of Many To Many relation pointing to Joined Inheritance Hierachy until this feature is completed --- .../ORM/Persisters/JoinedSubclassPersister.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php b/lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php index f6795e6b8..c6e08abf4 100644 --- a/lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php +++ b/lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php @@ -402,4 +402,17 @@ class JoinedSubclassPersister extends AbstractEntityInheritancePersister return $columns; } + + /** + * Gets the SQL to select a collection of entities in a many-many association. + * + * @param ManyToManyMapping $manyToMany + * @param array $criteria + * @return string + */ + protected function _getSelectManyToManyEntityCollectionSQL($manyToMany, array &$criteria) + { + // @todo + throw new \BadMethodCallException("Not yet implemented, see http://www.doctrine-project.org/jira/browse/DDC-342"); + } }