Permalink
Browse files

Add flexibility back to Mapper\Container::mapper_config().

  • Loading branch information...
1 parent 4543151 commit c7d72b25674168ace9158b3bd8aa385fac4c9bc6 @lukemorton lukemorton committed May 1, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 classes/Gignite/TheCure/Mapper/Container.php
@@ -93,7 +93,11 @@ protected function mapper_config()
{
$mappers = $this->config('mappers');
$key = $this->type();
- return $mappers[$key];
+
+ if (isset($mappers[$key]))
+ {
+ return $mappers[$key];
+ }
}
protected function connection()

0 comments on commit c7d72b2

Please sign in to comment.