Skip to content

Commit 4170916

Browse files
committed
minor #7686 [Validation Constraint References] Fixed Collection model example (HeahDude)
This PR was merged into the 2.7 branch. Discussion ---------- [Validation Constraint References] Fixed Collection model example Ref #7648. Commits ------- b1179c9 [Validation Constraint References] Fixed Collection model example
2 parents 1bd2602 + b1179c9 commit 4170916

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/constraints/Collection.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ of a collection individually. Take the following example::
3838
class Author
3939
{
4040
protected $profileData = array(
41-
'personal_email',
42-
'short_bio',
41+
'personal_email' => '',
42+
'short_bio' => '',
4343
);
4444

4545
public function setProfileData($key, $value)
@@ -80,8 +80,8 @@ following:
8080
* )
8181
*/
8282
protected $profileData = array(
83-
'personal_email',
84-
'short_bio',
83+
'personal_email' => '',
84+
'short_bio' => '',
8585
);
8686
}
8787

0 commit comments

Comments
 (0)