We have the following code:
public function indexAction()
{
$c = new UserModel();
$this->logger->info("Class: ".get_class($c));
$this->view->setVar('user_count', UserModel::count());
}
As a result, we see the following log:
[Mon, 13 Apr 15 14:23:26 +0300][INFO] Class: Admin\Model\UserModel
[Mon, 13 Apr 15 14:23:26 +0300][INFO] SELECT COUNT(*) AS 'rowcount' FROM ml_user
its good. Next run update page? log:
[Mon, 13 Apr 15 14:24:25 +0300][INFO] Class: Admin\Model\UserModel
[Mon, 13 Apr 15 14:24:25 +0300][INFO] SELECT COUNT(*) AS rowcount FROM ml_plugins_events
ml plugins events - WTF???
in one model can change the table if it is statically spelled ??
PS: MySQL 5.5.41, PHP 5.5.9, Phalcon 1.3.4
Help I have a week trying to fix it :(