Feature #3956

Implement a Count Validator

Added by Robert Lemke almost 12 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Could have
Category:
Validation
Start date:
2009-07-22
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

For the blog (and other apps) we need a Count Validator:

/**
  * @var \SplObjectStorage<F3\Blog\Domain\Model\Category>
  * @validate Count(atLeast = 1)
  */
protected $categories;

The validate should be able to count everything implementing the Countable interface.

#1

Updated by Robert Lemke almost 12 years ago

  • Target version deleted (1.0 alpha 3)
#2

Updated by Karsten Dambekalns over 11 years ago

  • Status changed from New to Accepted
  • Assignee set to Karsten Dambekalns
  • Target version set to 1.0 alpha 5
#3

Updated by Karsten Dambekalns over 11 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3219.

Also available in: Atom PDF