Skip to content

Loading…

Added $isIdentifierColumn documentation #602

Merged
merged 1 commit into from

3 participants

@alex88

I've added the documentation of the argument $isIdentifierColumn since in case of foreign composite keys it doesn't hydrate more then one row.

@alex88 alex88 Added $isIdentifierColumn documentation
I've added the documentation of the argument $isIdentifierColumn since in case of foreign composite keys it doesn't 
9ce4f98
@doctrinebot

Hello,

thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:

http://doctrine-project.org/jira/browse/DDC-2334

@beberlei beberlei merged commit 0c4f487 into doctrine:master

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 6, 2013
  1. @alex88

    Added $isIdentifierColumn documentation

    alex88 committed
    I've added the documentation of the argument $isIdentifierColumn since in case of foreign composite keys it doesn't 
Showing with 7 additions and 4 deletions.
  1. +7 −4 docs/en/reference/native-sql.rst
View
11 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
~~~~~~~~~~~~~~~~~~~~
Something went wrong with that request. Please try again.