From 4c2d08a440296a341c00f392ddfb4ace50eb49fa Mon Sep 17 00:00:00 2001 From: Jeroen Keppens Date: Mon, 21 Oct 2013 14:04:52 +0200 Subject: [PATCH] Added AdapterAwareInterface to AbstractDbMapper to allow initializers to inject the db adapter --- src/ZfcBase/Mapper/AbstractDbMapper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ZfcBase/Mapper/AbstractDbMapper.php b/src/ZfcBase/Mapper/AbstractDbMapper.php index 2c8b36c..c48d4c2 100644 --- a/src/ZfcBase/Mapper/AbstractDbMapper.php +++ b/src/ZfcBase/Mapper/AbstractDbMapper.php @@ -3,6 +3,7 @@ namespace ZfcBase\Mapper; use Zend\Db\Adapter\Adapter; +use Zend\Db\Adapter\AdapterAwareInterface; use Zend\Db\Adapter\Driver\ResultInterface; use Zend\Db\ResultSet\HydratingResultSet; use Zend\Db\Sql\Select; @@ -13,7 +14,7 @@ use ZfcBase\EventManager\EventProvider; use ZfcBase\Db\Adapter\MasterSlaveAdapterInterface; -abstract class AbstractDbMapper extends EventProvider +abstract class AbstractDbMapper extends EventProvider implements AdapterAwareInterface { /** * @var Adapter