Hi,
If you check the method signature of sfJob::save() and compare that
with that of Persistent::save() they are different, which generates
the error you see. As Damien noted, the plugin is only for symfony
1.0 because is not compatible with Propel 1.3 shipped with symfony 1.2
the Persistent referred there is an Interface inside Propel, which for
Propel 1.3 expects to be like this:
public function save(PropelPDO $con = null);
which is not compatible with the one declared in the plugin:
public function save($con = null)
{
if ($this->getName() == '')
{
$this->setName($this->getId());
}
parent::save();
}
But it will be compatible with the one on Persistent for Propel 1.2,
shipped with symfony 1.0:
public function save($con = null);
As note apart, for symfony 1.0, the code in the plugin has a bug,
because when it calls parent::save(); it should pass the $con parameter
If this is not clear, just read about OOP in PHP 5,
Regards,
Álvaro
On Nov 6, 2009, at 3:37 AM, Damien Alexandre wrote:
> This plugin only work with sf 1.0 and Propel, that helps ?
>
> On Thu, Nov 5, 2009 at 3:48 PM, harryjekyll <[email protected]>
> wrote:
> The error means that the method signature of sfJob::save() must be
> the same as in Persistent::save(), i.e.: probably different number
> of parameters or the visibility of the method is not the same.
>
>
> On Nov 5, 2009, at 6:39 PM, Noor Mustafa wrote:
>
>> Hi, To All
>>
>> i successfully sfJobQueuePlugin pluged-in but below error generate.
>>
>> I have sfJobQueuePlugin Error on
>>
>>
>> var/www/civil$ php symfony propel:build-all
>>
>> generating form classes
>>
>> Fatal error: Declaration of sfJob::save() must be compatible with
>> that of Persistent::save() in /var/www/civil/plugins/
>> sfJobQueuePlugin/lib/model/sfJob.php on line 22
>>
>> during the insallation process, plz any one can help me to solve
>> this error,
>>
>> and plz send me reason about this, and what should i do..?
>>
>>
>>
>>
>> Windows Live: Friends get your Flickr, Yelp, and Digg updates when
>> they e-mail you.
>>
>>
>
>
>
>
>
>
> --
> Damien ALEXANDRE http://www.clever-age.com
> Clever Age - Digital Architecture
> Clever Garden - Digital Landscape
> Tél: +33 1 53 34 66 10 GSM: +33 6 07 91 58 03
> Fax : +33 1 53 34 65 20
>
> Clever Age vous invite à ses petits-déjeuners
> http://www.clever-age.com/actualites/petits-dejeuners/
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---