If I have a $has_many relationship that I want to manage with a GridField in the cms, how would I go about putting a limit on the number of how man
$has_many
GridField
works for me: make the canCreate method of the DataObject that's managed by your GridField check for existing objects.
canCreate
of course, this doesn't allow you to implement a customg GridFieldComponent, as you need to modify the DataObject code.