ActiveRow::related::fetch on 1:1 relation does not produce an error
Given there is a 1:1(optional) relationship in the database.
For example in there are 2 tables member and add_info.
member has PK id and add_info has FK member_id.
However not every member has a add_info ,
and every add_info belongs to one and only one member.
When iterating over the Selection of member, i.e. ActiveRow.
ActiveRow::related()::fetch() to get to add_info, seemingly works if cache is disabled (or set to DevNullStorage). Should produce an error. Under DiscoveredReflection
If cache is enabled, than ActiveRow::related()::fetch() crashes apache server with error.log message: 'Parent: child process exited with status 255 -- Restarting.' Might be related to this issue: http://stackoverflow.com/questions/7620910/regexp-in-preg-match-function-returning-browser-error. Again should produce an error insead.
I am aware that ActiveRow::related()::fetch() is the wrong costruct to use, and ActiveRow::ref() should be used instead. However incorrect and non-sensible construc should produce an error. More inportantly since it seemingly works in development (with DevNullStorage) and suddenly crashes in production.