Hi There,
I got a question, I am getting this exception: Call to undefined method Phalcon\Db\Adapter\Pdo\Mysql::selectcollection().
I do not understand what I am missing here and where I need to put it. It occurs whenever I try to call this in the model:
...
public function initialize()
{
$this->setConnectionService('connection');
$this->setSource("table");
}
...
and it is defined on index as:
...
$di->set('connection', function(){
return new \Phalcon\Db\Adapter\Pdo\Mysql(array(
"host" => "127.0.0.1",
"username" => "username",
"password" => "password",
"dbname" => "database",
"port" => 0000,
'charset' => 'utf8',
));
});
...
I tried to look on the web but can't get anything to make it work. Please advice.
Thanks,