Allow an association to be set as primary key through the builder
This commit is contained in:
parent
b5238966d1
commit
cd728344e9
@ -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…
Reference in New Issue
Block a user