I have some table store_section
(id
,parent_id
,label
), I want to change some row, set parent_id=null.
I trying to:
$record = $table->getTable()->find( $id );
$record->parent_id = null;
$record->save();
But this isn't work. How can I do set NULL into the table in Doctrine, in example above, parent_id becomes =0 (not =NULL)?
Thnx for the responses!