$ model-> create()没有保存数组
$User= new \User();
$User->id = 1;
$User->data = [0=>123456789];
$User->create();`
$ model-> update()成功保存数组
$User= \User::findFirst(1);
$User->data = [0=>123456789];
$User->update();
我保存了数组$ model-> create()
class User extends Phalcon\Mvc\Model
{
public function initialize()
{
$this->setConnectionService('db_id');
$this->useDynamicUpdate(true);
}
public function beforeSave()
{
$this->data = serialize($this->data);
}
public function afterFetch()
{
$this->data = unserialize($this->data);
}
}
phalcon version 1.3.2