I'm rebuilding one of my sites using the CakePHP Framework (awesome!), and I need to limit the number of hasMany and HABTM records that a Model can have. Let's say for "Profile hasMany Image," I want to limit a profile to only 10 images.
I know I can easily accomplish this using the Find method with 'count,' but I'm wondering if there's a property that can be set somewhere that I overlooked. I've looked at the CakePHP documentation and Googled a bit, haven't seen anything, but I'm always running across little CakePHP secrets now and then.