[symfony-users] Re: sfForkedDoctrineApplyPlugin, several profiles, inheritance, sluggable behavior
No, it isn't On 22 jun, 15:13, Grzegorz Śliwiński wrote: > So... > It seems about right. Is sluggable field in the table in database? > > On Jun 21, 6:53 pm, lucia wrote: > > > > > Hi, thanks for your time, I have this: > > > //Basemyprofile1 > > $timestampable0 = new Doctrine_Template_Timestampable(); > > $sluggable0 = new Doctrine_Template_Sluggable(array( > > 'fields' => > > array( > > 0 => 'name', > > ), > > 'unique' => true, > > )); > > $this->actAs($timestampable0); > > $this->actAs($sluggable0); > > > On 21 jun, 14:52, Grzegorz ¦liwiñski wrote: > > > > hmmm... could you check your Basemyprofile1 or Basemyprofile2 classes > > > if they include your behaviours? > > > > On Jun 20, 2:13 pm, lucia wrote: > > > > > Hi, > > > > I followed the readme of the plugin, the problem is that when I > > > > rebuild model I lose behaviors, > > > > I have this model: > > > > myprofile1: > > > > inheritance: > > > > type: column_aggregation > > > > extends: sfGuardUserProfile > > > > actAs: { Timestampable: ~ , Sluggable:{ fields:[name], unique: > > > > true}} > > > > columns: > > > > > > > > relations: > > > > ... > > > > myprofile2: > > > > inheritance: > > > > type: column_aggregation > > > > extends: sfGuardUserProfile > > > > actAs: { Timestampable: ~ } > > > > columns: > > > > > > > > relations: > > > > ... > > > > I expected field called 'slug' , but no... > > > > Any idea? Maybe colision with inheritance? I changed the position of > > > > inheritance but the field slug doesn't > > > > appear.. > > > > Does anyone know how I can fix this? The sluggable behavior is very > > > > important for myprofile1 table. > > > > On the other hand, can I use concrete inheritance with this plugin? > > > > Thanks a lot > > > > PS: I'm sorry for my English- Ocultar texto de la cita - > > > > - Mostrar texto de la cita -- Ocultar texto de la cita - > > - Mostrar texto de la cita - -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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
[symfony-users] Re: sfForkedDoctrineApplyPlugin, several profiles, inheritance, sluggable behavior
Hi, thanks for your time, I have this: //Basemyprofile1 $timestampable0 = new Doctrine_Template_Timestampable(); $sluggable0 = new Doctrine_Template_Sluggable(array( 'fields' => array( 0 => 'name', ), 'unique' => true, )); $this->actAs($timestampable0); $this->actAs($sluggable0); On 21 jun, 14:52, Grzegorz Śliwiński wrote: > hmmm... could you check your Basemyprofile1 or Basemyprofile2 classes > if they include your behaviours? > > On Jun 20, 2:13 pm, lucia wrote: > > > > > Hi, > > I followed the readme of the plugin, the problem is that when I > > rebuild model I lose behaviors, > > I have this model: > > myprofile1: > > inheritance: > > type: column_aggregation > > extends: sfGuardUserProfile > > actAs: { Timestampable: ~ , Sluggable:{ fields:[name], unique: > > true}} > > columns: > > > > relations: > > ... > > myprofile2: > > inheritance: > > type: column_aggregation > > extends: sfGuardUserProfile > > actAs: { Timestampable: ~ } > > columns: > > > > relations: > > ... > > I expected field called 'slug' , but no... > > Any idea? Maybe colision with inheritance? I changed the position of > > inheritance but the field slug doesn't > > appear.. > > Does anyone know how I can fix this? The sluggable behavior is very > > important for myprofile1 table. > > On the other hand, can I use concrete inheritance with this plugin? > > Thanks a lot > > PS: I'm sorry for my English- Ocultar texto de la cita - > > - Mostrar texto de la cita - -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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
[symfony-users] sfForkedDoctrineApplyPlugin, several profiles, inheritance, sluggable behavior
Hi, I followed the readme of the plugin, the problem is that when I rebuild model I lose behaviors, I have this model: myprofile1: inheritance: type: column_aggregation extends: sfGuardUserProfile actAs: { Timestampable: ~ , Sluggable:{ fields:[name], unique: true}} columns: relations: ... myprofile2: inheritance: type: column_aggregation extends: sfGuardUserProfile actAs: { Timestampable: ~ } columns: relations: ... I expected field called 'slug' , but no... Any idea? Maybe colision with inheritance? I changed the position of inheritance but the field slug doesn't appear.. Does anyone know how I can fix this? The sluggable behavior is very important for myprofile1 table. On the other hand, can I use concrete inheritance with this plugin? Thanks a lot PS: I'm sorry for my English -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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