2

Currently I am dealing with 'glorpen bundle' and stuck in implementing Behavior to user class without adding it to user schema. Can anybody help me to figure this out? Thanks in advance.

Bijesh Shrestha
  • 371
  • 2
  • 15
  • 1
    How do U mean with adding it to the schema? – DarkBee Nov 03 '14 at 08:17
  • 1
    im using FOSUserBundle for user. I need to add some behavior to user class for that i have to override FOSUserBundle's schema file. And i need to define FOSUserBundle as my app's parent. Which i think is not good. So, i need another way and i saw that Glorpen bundle has two behaviors (entend and event), which adds these behaviors to user class without overriding FOSUserBUndle's schema. so i need to know how it implements these behavior to our user class? – Bijesh Shrestha Nov 03 '14 at 08:25
  • 2
    The only way the propel model creator task will add a behavior to a class is by adding it into the schema afaik – DarkBee Nov 03 '14 at 08:41
  • Is it possible to add a behavior in our userclass without overriding schema file like in glorpen bundle?? – Bijesh Shrestha Nov 03 '14 at 08:46
  • 2
    Some options.. Modify the propel generator class or modify one of the current applied added behaviors – DarkBee Nov 03 '14 at 08:50
  • 1
    i cant modify the user class(FOSUserBundle) since its a third party app. and also i get behavior from another bundle. How to do that? – Bijesh Shrestha Nov 03 '14 at 09:01
  • U'll have to alter something right? :) – DarkBee Nov 03 '14 at 11:41

0 Answers0