Feature #3956

Implement a Count Validator

Added by Robert Lemke about 10 years ago. Updated almost 9 years ago.

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

100%

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.

Associated revisions

Revision a95bc593 (diff)
Added by Karsten Dambekalns almost 10 years ago

[+FEATURE] FLOW3 (Validation): Added CountValidator, resolves #3956.

History

#1 Updated by Robert Lemke about 10 years ago

  • Target version deleted (1.0 alpha 3)

#2 Updated by Karsten Dambekalns almost 10 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 almost 10 years ago

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

Applied in changeset r3219.

Also available in: Atom PDF