Closed
Description
Hi,
I have an entity called Telephone with an validation constraint on the number:
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity
*/
class Telephone extends ContactMethod
{
/**
* @ORM\Column(type="integer", nullable=true)
* @Assert\Type(type="numeric")
*/
protected $countrycode;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\Type(type="numeric")
*/
protected $number;
}
However when I try to set the value of $number
to 2821760000 it is marked as "invalid".
Locally I'm not experiencing this problem (Mac OS X 10.9) but on our dedicated server with Windows Server 2003 x86, PHP 5.4.5 and Symfony 2.2.10 the validation fails.