public static function create($paths = array(), AnnotationReader $reader = null) { if ($reader == null) { $reader = new AnnotationReader(); $reader->setDefaultAnnotationNamespace('Doctrine\\OXM\\Mapping\\'); } return new self($reader, $paths); }
public function setUp() { $config = new Configuration(); $config->setMetadataDriverImpl(AnnotationDriver::create("tests/Doctrine/Tests/OXM/Entities")); $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache()); $this->metadataFactory = new ClassMetadataFactory($config); $this->marshaller = new XmlMarshaller($this->metadataFactory); }