Hello,
I want to map a relationship that HasOne but I want for the parent-child one-to-many inverse to be effective.
I am finding the HasOne(...) to not quite fit the bill, that is the references seem to be reversed, referring literally to an id in the source table.
However, that is not quite what we need nor want. When the parent goes away, we need for the child to also cascade.
Technically that is hasMany(...) but how to we restrict that collection to just one element, ALWAYS? Better if that could be done if possible in a mapping.
Although at this point, I am wondering that's not a modeling and/or business or controller operation.
Thoughts? Insights?
Thanks!
Best,
Michael W. Powell