1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Allow an association to be set as primary key through the builder

This commit is contained in:
Guido Contreras Woda 2014-12-23 09:48:02 -03:00 committed by Marco Pivetta
parent b5238966d1
commit cd728344e9

View File

@ -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
*