anavel / crud

The fast and simple CRUD generator for Laravel applications
MIT License
5 stars 3 forks source link

Cannot unset Select relations #45

Closed cmoralesweb closed 7 years ago

cmoralesweb commented 8 years ago

Optional BelongsTo relations, which are set with a select, cannot be unset (aka set to null): the generated query is incorrect:

SQL: updateuserssetupdated_at= 2016-08-05 10:04:53,external_id= whereid= 145

(notice the missing value for the external_id field)

There should be a way to force that null, somehow similarly to what we do to checkboxes.