From 9ce4f9806e53b7053111ee1716b5365221f2f963 Mon Sep 17 00:00:00 2001 From: Alessandro Tagliapietra Date: Wed, 6 Mar 2013 10:48:47 +0100 Subject: [PATCH] Added $isIdentifierColumn documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I've added the documentation of the argument $isIdentifierColumn since in case of foreign composite keys it doesn't  --- docs/en/reference/native-sql.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/en/reference/native-sql.rst b/docs/en/reference/native-sql.rst index 6bf8b9dee..b8a91000e 100644 --- a/docs/en/reference/native-sql.rst +++ b/docs/en/reference/native-sql.rst @@ -203,11 +203,12 @@ detail: /** * Adds a meta column (foreign key or discriminator column) to the result set. * - * @param string $alias - * @param string $columnAlias - * @param string $columnName + * @param string $alias + * @param string $columnAlias + * @param string $columnName + * @param boolean $isIdentifierColumn */ - public function addMetaResult($alias, $columnAlias, $columnName) + public function addMetaResult($alias, $columnAlias, $columnName, $isIdentifierColumn = false) The first parameter is the alias of the entity result to which the meta column belongs. A meta result column (foreign key or @@ -215,6 +216,8 @@ discriminator column) always belongs to to an entity result. The second parameter is the column alias/name of the column in the SQL result set and the third parameter is the column name used in the mapping. +The fourth parameter should be set to true in case the primary key +of the entity is the foreign key you're adding. Discriminator Column ~~~~~~~~~~~~~~~~~~~~