AssociationBuilder.php
9 months ago
ClassMetadataBuilder.php
9 months ago
EmbeddedBuilder.php
9 months ago
EntityListenerBuilder.php
9 months ago
FieldBuilder.php
9 months ago
ManyToManyAssociationBuilder.php
9 months ago
OneToManyAssociationBuilder.php
9 months ago
index.php
9 months ago
EmbeddedBuilder.php
26 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Mapping\Builder; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | class EmbeddedBuilder |
| 6 | { |
| 7 | private $builder; |
| 8 | private $mapping; |
| 9 | public function __construct(ClassMetadataBuilder $builder, array $mapping) |
| 10 | { |
| 11 | $this->builder = $builder; |
| 12 | $this->mapping = $mapping; |
| 13 | } |
| 14 | public function setColumnPrefix($columnPrefix) |
| 15 | { |
| 16 | $this->mapping['columnPrefix'] = $columnPrefix; |
| 17 | return $this; |
| 18 | } |
| 19 | public function build() |
| 20 | { |
| 21 | $cm = $this->builder->getClassMetadata(); |
| 22 | $cm->mapEmbedded($this->mapping); |
| 23 | return $this->builder; |
| 24 | } |
| 25 | } |
| 26 |