ice / framework

Source code of Ice framework
https://www.iceframework.org
BSD 3-Clause "New" or "Revised" License
341 stars 45 forks source link

Model, get related record if field is null #275

Closed mruz closed 3 years ago

mruz commented 3 years ago

If the field is empty, e.g. parent_id = NULL, then "get related model" returns an empty instance (there is no record associated with it) instead of null.