Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2008, 02:05 PM
Junior Member
 
Join Date: May 2008
Posts: 3
Default intersect tables with extra column

Hello,
I am trying to create ACL persistence using Zend_DB. I have 4 tables:
AclRoles - stores roles
AclResources - stores resources
AclPrivileges - stores privilege keys, and has a foreign key matching the privilege to a resource.
AclPrivileges_AclRoles - is an intersect table which matches Roles to privileges. So it has one column for a role id, one column for a privilege id, and one extra column describing the relationship, which is either allow or deny.

I have mapped out the tables and relationships using Zend_Db_Table_Abstract, but I cannot figure out how to get the information in that third column in the intersect table, the allow / deny information. Does anyone have any experience doing this?

I know I could store the allow / deny in the privileges table, but then I would need two entries for each privilege.

Thanks in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-14-2008, 03:57 PM
Junior Member
 
Join Date: May 2008
Posts: 3
Default

Anybody?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:10 PM.