Hey guys! It's me)
A have a code:
$lead = OfficeStats::findFirst([
'partner = 1 and order_id = ?0',
'bind' => [$orderId]
]);
echo $lead->id; // 5 (it's really)
$lead->status_text = 'approved';
if($lead->save()) { // Exception: Table '' doesn't exist in database when dumping meta-data for App\Models\OfficeStats
// ...
}
Why exception table "" ?
OfficeStats.php:
<?php
/**
* Статистика по заказам
*/
namespace App\Models;
use Phalcon\Mvc\Model;
class OfficeStats extends Model {
public function initialize() {
$this->setSource('office_stats');
}
}
The first time in 3 years of working with a phalcon I encounter such behavior.