Skip to content

Commit

Permalink
Merge pull request #602 from alex88/patch-1
Browse files Browse the repository at this point in the history
Added $isIdentifierColumn documentation
  • Loading branch information
beberlei committed Mar 12, 2013
2 parents 8b8d1a5 + 9ce4f98 commit 0c4f487
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/en/reference/native-sql.rst
Expand Up @@ -203,18 +203,21 @@ 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
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
~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 0c4f487

Please sign in to comment.