Hi again,
forget it. I found the solution myself. I actually don't want to access
the SM from the Mapper. I only needed the corresponding table object.
Like this:
class Module
{
public function getServiceConfig()
{
return array(
'factories' => array(
'User\Table\User' => function($sm) {
$dbAdapter = $sm->get('Zend\Db\Adapter\Adapter');
$table = new UserTable($dbAdapter);
return $table;
},
'User\Mapper\User' => function($sm) {
$table = $sm->get('User\Table\User');
$mapper = new UserMapper($table);
return $mapper;
},
),
);
}
}
Best regards,
Ralf
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]