I don't no why you use sfValidatorAnd you can test this i think is
work
  $this->validatorSchema['email'] =  new sfValidatorEmail();


On 1 août, 12:50, televas <[email protected]> wrote:
> Hi,
>
> my Jobeet project works properly. I'm trying to convert it into
> plugin, but I'm having some problems. When I try to open a new/edit
> form to create/modify a job or category, the form shows only some
> fields (type, company logo and token) and raises the following error
> both in frontend/backend:
>
> - Catchable fatal error: Argument 1 passed to
> sfValidatorAnd::addValidator() must be an instance of sfValidatorBase,
> null given, called in [...]
>
> The error is raised in this code (line: $this->validatorSchema
> ['email'] = ):
>
> --------------------------------------------------------
> abstract class PluginJobeetJobForm extends BaseJobeetJobForm
> {
>   public function setup()
>   {
>       $this->removeFields();
>
>       $this->validatorSchema['email'] = new sfValidatorAnd(array(
>         $this->validatorSchema['email'],
>         new sfValidatorEmail(),
>       ));
> [...]
> --------------------------------------------------------
>
> I think this error is raised because most of the fields are not
> returned from the doctrine classes, so its validators are not created.
>
> Do you can help me?
>
> I think that the tutorial is clear, but this chapter doesn't explore
> the topic rather: I'm the only one to think this?
>
> Thank you in advance

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to