So... can I save a record without required fields?

Hi all!

I’ve this problem:




        $d = new MyModel();

        $d->email = $_POST['MyModel']['email'];

        $d->save();

This code dont save into the database. I think that the reason is that the model has fow field required. Is it right? So… can I save a record without required fields?

Yes:




$d->save(false);

// or to save only "email" attribute:

$d->save(false, array('email'));



Thank you =)