Skip to content

Commit f90a706

Browse files
committed
Changed deprecated calls to MaxLength and MinLength
See http://symfony.com/doc/2.2/reference/constraints/MinLength.html
1 parent 392a89b commit f90a706

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Entity/Currency.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class Currency
1515
protected $id;
1616

1717
/**
18-
* @Assert\MinLength(3)
19-
* @Assert\MaxLength(3)
18+
* @Assert\Length(min=3)
19+
* @Assert\Length(max=3)
2020
* @Assert\NotBlank()
2121
* @Assert\Type(type="string")
2222
*
@@ -91,4 +91,4 @@ public function convert($rate)
9191
{
9292
$this->rate /= $rate;
9393
}
94-
}
94+
}

0 commit comments

Comments
 (0)