registerMapping() public method

public registerMapping ( string $path, string $namespace ) : EntityManagerBuilder
$path string
$namespace string
return EntityManagerBuilder
Exemplo n.º 1
0
 /**
  * @param EntityManagerBuilder $builder
  */
 public function registerInventoryMapping(EntityManagerBuilder $builder)
 {
     $builder->registerMapping(DUMPLIE_SRC_PATH . '/Dumplie/Inventory/Infrastructure/Doctrine/ORM/Resources/Mapping/Domain', 'Dumplie\\Inventory\\Domain')->registerCustomType(OrderStateType::NAME, OrderStateType::class)->registerCustomType(PaymentStateType::NAME, PaymentStateType::class);
 }
Exemplo n.º 2
0
 /**
  * @param EntityManagerBuilder $builder
  */
 public function registerCustomerMapping(EntityManagerBuilder $builder)
 {
     $builder->registerMapping(DUMPLIE_SRC_PATH . '/Dumplie/Customer/Infrastructure/Doctrine/ORM/Resources/Mapping/Domain', 'Dumplie\\Customer\\Domain')->registerCustomType(CartItemsType::NAME, CartItemsType::class)->registerCustomType(OrderItemsType::NAME, OrderItemsType::class);
 }
Exemplo n.º 3
0
 /**
  * @param EntityManagerBuilder $builder
  */
 public function registerCustomerServiceMapping(EntityManagerBuilder $builder)
 {
     $builder->registerMapping(DUMPLIE_SRC_PATH . '/Dumplie/CustomerService/Infrastructure/Doctrine/ORM/Resources/Mapping/Domain', 'Dumplie\\CustomerService\\Domain');
 }