weird :s ... i'm using sf1.2 too

2009/9/16 Farrukh Abbas <strategy.vs.lo...@gmail.com>

> tried that too ... does not work ... r u using sf 1.2 ?
> can u plz give it a try for experiment sake ... coz i picked the
> implementation of many to many relationship from a thread which was based on
> 1.0 http://groups.google.com/group/symfony-users/msg/627be2a11e61990e
>
> <http://groups.google.com/group/symfony-users/msg/627be2a11e61990e>
>
> On Wed, Sep 16, 2009 at 8:14 PM, Abraham Montilla <amontil...@gmail.com>wrote:
>
>> oh, try deleting the module and generate it again, i think that's the
>> problem then...
>>
>> 2009/9/16 Farrukh Abbas <strategy.vs.lo...@gmail.com>
>>
>> yes i did, build-model, form, sql, and insert-sql ... then cache:clear ...
>>> but no difference ...
>>>
>>> On Wed, Sep 16, 2009 at 3:45 AM, Abraham Montilla 
>>> <amontil...@gmail.com>wrote:
>>>
>>>> i think you actually did it, but... did you make the build-all-load
>>>> command? and clear the cache only to see if helps.
>>>>
>>>> 2009/9/15 Farrukh Abbas <strategy.vs.lo...@gmail.com>
>>>>
>>>>> changed the schema to the following (propel), but still no luck ...
>>>>>
>>>>>   permission:
>>>>>     id:
>>>>>     method_name:      { type: VARCHAR, size: 50, required: true }
>>>>>     action_name:      { type: VARCHAR, size: 50, required: true }
>>>>>   role:
>>>>>     id:
>>>>>     name:             { type: VARCHAR, size: 100, required: true }
>>>>>   role_permission:
>>>>>     role_id:          { type: INTEGER, required: true, foreignTable:
>>>>> role, foreignReference: id}
>>>>>     permission_id:    { type: INTEGER, required: true, foreignTable:
>>>>> permission, foreignReference: id}
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Sep 15, 2009 at 10:28 PM, Abraham Montilla <
>>>>> amontil...@gmail.com> wrote:
>>>>>
>>>>>> Hello dagger, in the schema you have to add foreign keys to the third
>>>>>> table, in Doctrine would be something like
>>>>>>
>>>>>> Permission:
>>>>>>   columns:
>>>>>>     id:
>>>>>>       type: integer(4)
>>>>>>       primary: true
>>>>>>       notnull: true
>>>>>>     method_name:
>>>>>>       type: string(50)
>>>>>>       notnull: true
>>>>>>     action_name:
>>>>>>       type: string(50)
>>>>>>       notnull: true
>>>>>>   options:
>>>>>>     type: InnoDB
>>>>>>
>>>>>> Role:
>>>>>>   columns:
>>>>>>     id:
>>>>>>       type: integer(4)
>>>>>>       primary: true
>>>>>>       notnull: true
>>>>>>     name:
>>>>>>       type: string(100)
>>>>>>       notnull: true
>>>>>>   options:
>>>>>>     type: InnoDB
>>>>>>
>>>>>> RolePermission:
>>>>>>   tableName: Role_Permission
>>>>>>   columns:
>>>>>>     Role_id:
>>>>>>       type: integer(4)
>>>>>>       primary: true
>>>>>>       notnull: true
>>>>>>     Permission_id:
>>>>>>       type: integer(4)
>>>>>>       primary: true
>>>>>>       notnull: true
>>>>>>   relations:
>>>>>>     Role:
>>>>>>       local: Role_id
>>>>>>       foreign: id
>>>>>>       foreignAlias: RolePermissions
>>>>>>     Permission:
>>>>>>       local: Permission_id
>>>>>>       foreign: id
>>>>>>       foreignAlias: RolePermissions
>>>>>>   options:
>>>>>>     type: InnoDB
>>>>>>
>>>>>>
>>>>>> In Propel i bet is quite the same... Good luck.
>>>>>>
>>>>>> 2009/9/15 dagger <strategy.vs.lo...@gmail.com>
>>>>>>
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I'm trying to implement the many to many relation between Role and
>>>>>>> Permission ... but the admin_check_list is not appearing ... i am
>>>>>>> using symfony 1.2 ... the structure follows
>>>>>>>
>>>>>>> schema.yml
>>>>>>> permission:
>>>>>>>    id:
>>>>>>>    method_name:      { type: VARCHAR, size: 50, required: true }
>>>>>>>    action_name:      { type: VARCHAR, size: 50, required: true }
>>>>>>>  role:
>>>>>>>    id:
>>>>>>>    name:             { type: VARCHAR, size: 100, required: true }
>>>>>>>  role_permission:
>>>>>>>    role_id:
>>>>>>>    permission_id:
>>>>>>>
>>>>>>> generated 2 modules at backend through - init-admin task
>>>>>>>
>>>>>>> permission and role
>>>>>>>
>>>>>>> The generator.yml of role module looks like this
>>>>>>>
>>>>>>> generator:
>>>>>>>  class:              sfPropelAdminGenerator
>>>>>>>  param:
>>>>>>>    model_class:      Role
>>>>>>>    theme:            default
>>>>>>>
>>>>>>>    list:
>>>>>>>      object_actions:
>>>>>>>        _edit: ~
>>>>>>>    edit:
>>>>>>>      fields:
>>>>>>>        role_permission: { type: admin_check_list, params:
>>>>>>> through_class=RolePermission }
>>>>>>>
>>>>>>> and i don't see the check list on the edit page of role... can any
>>>>>>> one
>>>>>>> help me find the mistake i'm making?
>>>>>>>
>>>>>>> highly appreciate your help.
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Have a nice day.
>>>>>> Abraham Montilla.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> kind regards
>>>>> Farrukh K. Muhammad
>>>>> skype id - mobileweaver
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Have a nice day.
>>>> Abraham Montilla.
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> kind regards
>>> Farrukh K. Muhammad
>>> skype id - mobileweaver
>>>
>>>
>>>
>>
>>
>> --
>> Have a nice day.
>> Abraham Montilla.
>>
>>
>>
>
>
> --
> kind regards
> Farrukh K. Muhammad
> skype id - mobileweaver
>
> >
>


-- 
Have a nice day.
Abraham Montilla.

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

Reply via email to