Merge branch '2.0'
This commit is contained in:
commit
b61cff3d19
|
@ -483,7 +483,7 @@ EOT;
|
|||
|
||||
private function transformToLogicalName(\SplFileInfo $schema, BundleInterface $bundle)
|
||||
{
|
||||
$schemaPath = str_replace($bundle->getPath().'/Resources/config/', '', $schema->getPathname());
|
||||
$schemaPath = str_replace($bundle->getPath(). DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR, '', $schema->getRealPath());
|
||||
|
||||
return sprintf('@%s/Resources/config/%s', $bundle->getName(), $schemaPath);
|
||||
}
|
||||
|
|
|
@ -206,9 +206,6 @@ abstract class AbstractDataLoader extends AbstractDataHandler implements DataLoa
|
|||
// save the object for future reference
|
||||
if (method_exists($obj, 'getPrimaryKey')) {
|
||||
$class_default = constant(constant($class.'::PEER').'::CLASS_DEFAULT');
|
||||
if ('/' !== substr($class_default, 0, 1)) {
|
||||
$class_default = '/' . $class_default;
|
||||
}
|
||||
$this->object_references[Propel::importClass($class_default).'_'.$key] = $obj;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue