Exemplo n.º 1
0
 protected function setup()
 {
     parent::setup();
     try {
         $this->_schemaTool->createSchema(array($this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2230User'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2230Address')));
     } catch (ToolsException $e) {
     }
 }
Exemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 protected function setup()
 {
     parent::setup();
     $platform = $this->_em->getConnection()->getDatabasePlatform();
     if (!$platform->supportsSchemas() && !$platform->canEmulateSchemas()) {
         $this->markTestSkipped("This test is only useful for databases that support schemas or can emulate them.");
     }
 }
Exemplo n.º 3
0
 /**
  * {@inheritDoc}
  */
 protected function setup()
 {
     parent::setup();
     try {
         $this->_schemaTool->createSchema(array($this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2692Foo')));
     } catch (\Exception $e) {
         return;
     }
     $this->_em->clear();
 }
Exemplo n.º 4
0
 /**
  * {@inheritDoc}
  */
 protected function setup()
 {
     parent::setup();
     try {
         $this->_schemaTool->createSchema(array($this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2660Product'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2660Customer'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2660CustomerOrder')));
     } catch (\Exception $e) {
         return;
     }
     for ($i = 0; $i < 5; $i++) {
         $product = new DDC2660Product();
         $customer = new DDC2660Customer();
         $order = new DDC2660CustomerOrder($product, $customer, 'name' . $i);
         $this->_em->persist($product);
         $this->_em->persist($customer);
         $this->_em->flush();
         $this->_em->persist($order);
         $this->_em->flush();
     }
     $this->_em->clear();
 }
Exemplo n.º 5
0
 /**
  * {@inheritDoc}
  */
 protected function setup()
 {
     parent::setup();
     try {
         $this->_schemaTool->createSchema(array($this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2759Qualification'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2759Category'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2759QualificationMetadata'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2759MetadataCategory')));
     } catch (\Exception $e) {
         return;
     }
     $qualification = new DDC2759Qualification();
     $qualificationMetadata = new DDC2759QualificationMetadata($qualification);
     $category1 = new DDC2759Category();
     $category2 = new DDC2759Category();
     $metadataCategory1 = new DDC2759MetadataCategory($qualificationMetadata, $category1);
     $metadataCategory2 = new DDC2759MetadataCategory($qualificationMetadata, $category2);
     $this->_em->persist($qualification);
     $this->_em->persist($qualificationMetadata);
     $this->_em->persist($category1);
     $this->_em->persist($category2);
     $this->_em->persist($metadataCategory1);
     $this->_em->persist($metadataCategory2);
     $this->_em->flush();
     $this->_em->clear();
 }
Exemplo n.º 6
0
 /**
  * {@inheritDoc}
  */
 protected function setup()
 {
     parent::setup();
     $this->_schemaTool->createSchema(array($this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC3170AbstractEntityJoined'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC3170ProductJoined'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC3170AbstractEntitySingleTable'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC3170ProductSingleTable')));
 }
Exemplo n.º 7
0
 protected function setup()
 {
     parent::setup();
     $this->_schemaTool->createSchema(array($this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2256User'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2256Group')));
 }
Exemplo n.º 8
0
 /**
  * {@inheritDoc}
  */
 protected function setup()
 {
     parent::setup();
     $this->_schemaTool->createSchema(array($this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2346Foo'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2346Bar'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2346Baz')));
     $this->logger = new DebugStack();
 }
Exemplo n.º 9
0
 /**
  * {@inheritDoc}
  */
 protected function setup()
 {
     parent::setup();
     $this->_schemaTool->createSchema(array($this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2306Zone'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2306User'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2306Address'), $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC2306UserAddress')));
 }