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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to