Discussion:
[Semantical Error] The annotation
Mehdi MAYS
2013-06-26 07:50:18 UTC
Permalink
Salamo aalykom ,

i dont know about this error
when i want make upload file
i use this

use Symfony\Component\Validator\Constraint as Assert;
...
/**
* @Assert\File(maxSize="6000000")
*/
private $file;
...


the error is

[Semantical Error] The annotation
"@Symfony\Component\Validator\Constraint\File" in property
Test\FirstBundle\Entity\Document::$file does not exist, or could not be
auto-loaded.

how i can fix it ?
--
Merci
Cordialement

Mehdi MAYS
GSM : +212669609987
Analyste Développeur
--
--
If you want to report a vulnerability issue on Symfony, please read the procedure on http://symfony.com/security

You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
---
You received this message because you are subscribed to the Google Groups "Symfony2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Gábor Fási
2013-06-26 07:53:47 UTC
Permalink
The correct namespace is Constraints, not Constraint (note the 's' at the end)
Post by Mehdi MAYS
Salamo aalykom ,
i dont know about this error
when i want make upload file
i use this
use Symfony\Component\Validator\Constraint as Assert;
...
/**
*/
private $file;
...
the error is
[Semantical Error] The annotation
Test\FirstBundle\Entity\Document::$file does not exist, or could not be
auto-loaded.
how i can fix it ?
--
Merci
Cordialement
Mehdi MAYS
GSM : +212669609987
Analyste Développeur
--
--
If you want to report a vulnerability issue on Symfony, please read the
procedure on http://symfony.com/security
You received this message because you are subscribed to the Google Groups "Symfony2" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
---
You received this message because you are subscribed to the Google Groups "Symfony2" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/groups/opt_out.
--
--
If you want to report a vulnerability issue on Symfony, please read the procedure on http://symfony.com/security

You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
---
You received this message because you are subscribed to the Google Groups "Symfony2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Mehdi MAYS
2013-06-26 07:57:42 UTC
Permalink
Ah !! thank you it work
Post by Gábor Fási
The correct namespace is Constraints, not Constraint (note the 's' at the end)
Post by Mehdi MAYS
Salamo aalykom ,
i dont know about this error
when i want make upload file
i use this
use Symfony\Component\Validator\Constraint as Assert;
...
/**
*/
private $file;
...
the error is
[Semantical Error] The annotation
Test\FirstBundle\Entity\Document::$file does not exist, or could not be
auto-loaded.
how i can fix it ?
--
Merci
Cordialement
Mehdi MAYS
GSM : +212669609987
Analyste Développeur
--
--
If you want to report a vulnerability issue on Symfony, please read the
procedure on http://symfony.com/security
You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
---
You received this message because you are subscribed to the Google Groups
"Symfony2" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/groups/opt_out.
--
--
If you want to report a vulnerability issue on Symfony, please read the
procedure on http://symfony.com/security
You received this message because you are subscribed to the Google Groups "Symfony2" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
---
You received this message because you are subscribed to the Google Groups "Symfony2" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/groups/opt_out.
--
Merci
Cordialement

Mehdi MAYS
GSM : +212669609987
Analyste Développeur
--
--
If you want to report a vulnerability issue on Symfony, please read the procedure on http://symfony.com/security

You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
---
You received this message because you are subscribed to the Google Groups "Symfony2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Loading...