Commit d78f992e authored by jepso's avatar jepso

fixed locator class name constructing

parent 4e7a6674
......@@ -134,9 +134,15 @@ class Doctrine_Locator implements Countable, IteratorAggregate
} else {
$className = $name;
if ( ! class_exists($className)) {
$className = $this->_classPrefix . str_replace('.', '_', $name);
if ( ! class_exists($className)) {
$name = explode('.', $name);
foreach ($name as $k => $value) {
$name[$k] = ucfirst(strtolower($value));
}
$name = implode('_', $name);
$className = $this->_classPrefix . $name;
if ( ! class_exists($className)) {
throw new Doctrine_Locator_Exception("Couldn't locate resource " . $className);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment