Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
6d03fe41
Commit
6d03fe41
authored
Apr 02, 2014
by
Jérôme Tamarelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[doc] Move class definition to the correct section
parent
aed7cb81
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
doc/providers/validator.rst
doc/providers/validator.rst
+12
-12
No files found.
doc/providers/validator.rst
View file @
6d03fe41
...
@@ -78,18 +78,6 @@ collection of constraints::
...
@@ -78,18 +78,6 @@ collection of constraints::
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Constraints as Assert;
class Book
{
public $title;
public $author;
}
class Author
{
public $first_name;
public $last_name;
}
$book = array(
$book = array(
'title' => 'My Book',
'title' => 'My Book',
'author' => array(
'author' => array(
...
@@ -123,6 +111,18 @@ the class properties and getters, and then call the ``validate`` method::
...
@@ -123,6 +111,18 @@ the class properties and getters, and then call the ``validate`` method::
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Constraints as Assert;
class Book
{
public $title;
public $author;
}
class Author
{
public $first_name;
public $last_name;
}
$author = new Author();
$author = new Author();
$author->first_name = 'Fabien';
$author->first_name = 'Fabien';
$author->last_name = 'Potencier';
$author->last_name = 'Potencier';
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment