Feature #3956

Implement a Count Validator

Added by Robert Lemke about 6 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2009-07-22
Priority:Could have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Validation
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 5
PHP Version: Complexity:
Has patch:

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
Added by Karsten Dambekalns almost 6 years ago

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

History

#1 Updated by Robert Lemke almost 6 years ago

  • Target version deleted (1.0 alpha 3)

#2 Updated by Karsten Dambekalns almost 6 years ago

  • Status changed from New to Accepted
  • Assigned To set to Karsten Dambekalns
  • Target version set to 1.0 alpha 5

#3 Updated by Karsten Dambekalns almost 6 years ago

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

Applied in changeset r3219.

Also available in: Atom PDF