cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

getConnectionService ignored in Phalcon\Mvc\Model

Open roman-kulish opened this issue 13 years ago • 2 comments

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.

roman-kulish avatar Jan 01 '13 05:01 roman-kulish

Thanks Roman, that was re-written in 0.8.0, to store the connection services in the models manager

ghost avatar Jan 01 '13 17:01 ghost

This doesn't work again in 2

nsossonko avatar May 12 '15 23:05 nsossonko