Feature #3093

Implement annotation based validation rules for models

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

Status:
Resolved
Priority:
Must have
Assignee:
Category:
Validation
Start date:
2009-04-15
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

Make these @validate annotations work in a model:

    /**
     * The blog's name. Also acts as the identifier.
     *
     * @var string
     * @validate Alphanumeric, StringLength(minimum = 3, maximum = 50)
     * @identity
     */
    protected $name = '';

    /**
     * A short description of the blog
     *
     * @var string
     * @validate Text, StringLength(maximum = 150)
     */
    protected $description = '';

#1

Updated by Robert Lemke over 12 years ago

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

Applied in changeset r2185.

Also available in: Atom PDF