How can I use Class Phalcon\Mvc\Collection
in a stand-alone manner without DI? In other word how can I specify mongo connection manually?
How can I access native MongoCollecton class that is use by Phalcon\Mvc\Collection
?
Currently I use $this->getConnection()->{$this->getSource()}->findOne();
. The problem is that getConnection is not static and I can not write static method in Model using that.