Well in both the sample case with sfPropelParanoidBehaviorPlugin in my test
project/app and in the case of the behavior I created in my real project
app, both behaviors are in /plugins/sfPropel[*]Plugin where * is the name of
the behavior. as thats where plugin installs go. I don't remember if this is
an autoload directory but I assumed it was since this is where the
plugin-install command puts them and there were no other directions in the
wiki page. IS there a step missing where I need to change some other
configuration settings or symlink things to elsewhere in the file structure
so they autoload?

As for the procedure, I have followed the installation directions on the
wiki page for sfPropelParanoidBehaviorPlugin: changing the propel.ini,
rebuilding the model, clearing the cache, then adding the behavior to the
class. I did likewise for my behavior in my real project.

On 5/4/07 2:46 AM, "Francois Zaninotto"
<[EMAIL PROTECTED]> wrote:

> 
> Ant,
> 
> Let's check a few things:
> 
> Did you enable behaviors in your propel.ini?
> 
>  propel.builder.AddBehaviors = true
> 
> Did you rebuild the model after that?
> 
>  symfony propel-build-model
> 
> Do you use the latest version of symfony (1.0.2) ?
> 
> Did you add the behaviors to the class you want to extend?
> 
>   sfPropelBehavior::add($class_name, array($behavior_name));
> 
> Is the behavior in an autoloadable directory (lib/) ?
> 
> Did you clear the cache ?
> 
> François
> 
> -----Message d'origine-----
> De : [email protected] [mailto:[EMAIL PROTECTED]
> De la part de Ant Cunningham
> Envoyé : vendredi 4 mai 2007 05:46
> À : [email protected]
> Objet : [symfony-users] Propel Behaviors: "Propel Behavior not registered"
> 
> 
> ok after days of trying to figure out what I was doing wrong I found the
> threads in the forums about SfPeerBuilder and propel behaviors. I have tried
> replacing the class with the patched one and also manually adding the proper
> __call method to the object class and neither seem to work. it just ignores
> them in the application. and if I do symfony propel-generate-crud I get:
> 
> [sfConfigurationException]
>   Propel behavior "behaviorName" is not registered I even made anew app just
> to test, and used sfPropelParanoidBehavior with it.
> 
> IT doesn't work in the test case either. How do I fix this???????
> 
> 
> 
> 
> 
> 
> > 



--~--~---------~--~----~------------~-------~--~----~
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