Validates the count of associated records.
stringThe field to check
Constructor.
Performs the count check
__construct(string $field)
Constructor.
string $field The field to check the count on.
__invoke(Cake\Datasource\EntityInterface $entity, array<string, mixed> $options): bool
Performs the count check
Cake\Datasource\EntityInterface $entity The entity from where to extract the fields.
array<string, mixed> $options Options passed to the check.
boolThe field to check
string
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.ORM.Rule.ValidCount.html