Model create() two times like this:
$model->create(array('name' => 'Han', 'year' => '1989')); $model->create(array('name' => 'Zhang', 'year' => '1996'));
It occurred an error:"Record cannot be created because it already exists"
Model create() two times like this:
$model->create(array('name' => 'Han', 'year' => '1989')); $model->create(array('name' => 'Zhang', 'year' => '1996'));
It occurred an error:"Record cannot be created because it already exists"