Open larsnystrom opened 9 years ago
We haven't done this in the past as the AdapterAwareInterface
was added after the validator was created. :)
As for the AdapterAwareTrait
, until 2.5, we couldn't have used it.
Feel free to send a PR with these changes.
Has this been fixed yet ? If not I would like to give it a try .
it close-able
This repository has been closed and moved to laminas/laminas-validator; a new issue has been opened at https://github.com/laminas/laminas-validator/issues/46.
At the moment
Zend\Validator\Db\AbstractDb
has a methodsetAdapter
to set the database adapter. I think the canonical way of doing that would be to implement theZend\Db\Adapter\AdapterAwareInterface
'ssetDbAdapter()
instead, maybe by using theZend\Db\Adapter\AdapterAwareTrait
.