cphalcon
cphalcon copied to clipboard
getConnectionService ignored in Phalcon\Mvc\Model
In ext/mvc/model.c, line 416 you obtain connection service name by referring to Phalcon\Mvc\Model::_connectionService, which is OK, but if somebody overrides getConnectionService() method to return new connection service name it will have no effect.
It's better to call Phalcon\Mvc\Model::getConnectionService() instead and use result to retrieve connection pbject from DI.
Thanks Roman, that was re-written in 0.8.0, to store the connection services in the models manager
This doesn't work again in 2