Hi,
how do I mange to insert an empty record? I always get "Unable to insert into ..... without data"exception.
<?php
use Phalcon\Mvc\Model;
/**
* Settings.
*
* @Source("test")
*/
class TestModel extends Model
{
/**
* @Primary
* @Identity
* @Column(type="integer", nullable=false, size="11")
*/
public $id;
}
<?php
$test = new TestModel;
$test->save();