Hi,
Is this a bug or I'm doing something wrong?
This happen to any models or behaviors.
Let say, in sfGuardUserProfile.php, I put below code at the end
sfPropelBehavior::add('sfGuardUserProfile',
array('sfPropelActAsCommentableBehavior'));
Then in command line, I do
symfony propel:build-all-all frontend
or build-model etc..
I will get ERROR:
The class "BasesfGuardUserProfile" has already a mixin for method
"addComment"
BUT, if I comment out in sfGuardUserProfile.php
sfPropelBehavior::add('sfGuardUserProfile',
array('sfPropelActAsCommentableBehavior'));
The building model, sql would work fine. NO ERROR.
But then I have to "uncomment" the sfPropelBehavior::add, so that it
register the behavior.
Is that true that I CAN ONLY add "sfPropelBehavior::add" code to model
class after I build my model, sql ect..
The comment/uncomment is a very tedious task to work around the
problem, consider I have to rebuild my model very often while
developing?
What is the work around for this?
I'm currently using Symfo 1.1, but symfo 1.0 give the same error too,
I had to comment/uncomment every time I run build model
Please help
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---