1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Added more docblock

This commit is contained in:
Guido Contreras Woda 2014-12-16 22:37:50 -03:00
parent 8fd28fcd8f
commit 82847e1851
2 changed files with 15 additions and 0 deletions

View File

@ -80,6 +80,15 @@ class ClassMetadataBuilder
return $this;
}
/**
* Adds and embedded class
*
* @param string $fieldName
* @param string $class
* @param string|null $columnPrefix
*
* @return $this
*/
public function addEmbedded($fieldName, $class, $columnPrefix = null)
{
$this->cm->mapEmbedded(array(

View File

@ -49,6 +49,12 @@ class EmbeddedBuilder
$this->mapping = $mapping;
}
/**
* Sets the column prefix for all of the embedded columns.
*
* @param string $columnPrefix
* @return $this
*/
public function setColumnPrefix($columnPrefix)
{
$this->mapping['columnPrefix'] = $columnPrefix;