[eluser]macigniter[/eluser]
[quote author="OverZealous" date="1273683107"]
Did you try the search in the manual? It searches these forums as well. It's backed by Googleâ„¢
[/quote]
No. Thanks for the hint!
[quote author="OverZealous" date="1273683107"]
Why don't you just write an extension. All the relationships are stored in the $has_one and $has_many arrays. Simply loop through the keys on those arrays, and do your count checks. Note that is_related_to already exists, so it might be confusing to call it is_related.[/quote]
Thanks, Phil. I'll give that a try. You should get an award for always replying so fast... :-)
EDIT: It rocks! Man how I love you for creating this amazing piece of code...