From 82847e1851dec9edfc2373c5c7833787066d25fd Mon Sep 17 00:00:00 2001 From: Guido Contreras Woda Date: Tue, 16 Dec 2014 22:37:50 -0300 Subject: [PATCH] Added more docblock --- .../ORM/Mapping/Builder/ClassMetadataBuilder.php | 9 +++++++++ lib/Doctrine/ORM/Mapping/Builder/EmbeddedBuilder.php | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/lib/Doctrine/ORM/Mapping/Builder/ClassMetadataBuilder.php b/lib/Doctrine/ORM/Mapping/Builder/ClassMetadataBuilder.php index 9b0346d4e..7d771d3f9 100644 --- a/lib/Doctrine/ORM/Mapping/Builder/ClassMetadataBuilder.php +++ b/lib/Doctrine/ORM/Mapping/Builder/ClassMetadataBuilder.php @@ -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( diff --git a/lib/Doctrine/ORM/Mapping/Builder/EmbeddedBuilder.php b/lib/Doctrine/ORM/Mapping/Builder/EmbeddedBuilder.php index 9a285a1be..de8383c53 100644 --- a/lib/Doctrine/ORM/Mapping/Builder/EmbeddedBuilder.php +++ b/lib/Doctrine/ORM/Mapping/Builder/EmbeddedBuilder.php @@ -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;