Allow an association to be set as primary key through the builder
This commit is contained in:
parent
b5238966d1
commit
cd728344e9
1 changed files with 11 additions and 0 deletions
|
@ -183,6 +183,17 @@ class AssociationBuilder
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets field as primary key.
|
||||
*
|
||||
* @return AssociationBuilder
|
||||
*/
|
||||
public function isPrimaryKey()
|
||||
{
|
||||
$this->mapping['id'] = true;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ClassMetadataBuilder
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue