[BUGFIX] Identifier of NULL objects cannot be converted
[TASK] Fix ORM cascade options