From: Matt Hulse <matt.hu...@gmail.com>
Date: Thu, 15 May 2008 20:32:01 -0700 (PDT)
Local: Fri 16 May 2008 04:32
Subject: Re: Unique rows with auto increment
Jon, thanks for the response.
I explored listeners and hooks and here is what I came up with:
public function preInsert($event)
This code seems to do what I need and duplicate permissions are not
$user = new User();
This code generates a new entry for my associative table between users
Any ideas?
Thanks,
Matt
On May 15, 5:49 pm, "Jonathan Wage" <jonw...@gmail.com> wrote:
> That would work or you could do it with a preSave() record listener
> possibly. Read up on listeners and you will probably find what you want. > - Jon
> On Thu, May 15, 2008 at 5:22 PM, Matt Hulse <matt.hu...@gmail.com> wrote:
> > I have a permissions table which has two fields, page and action. I
> > I would really like to setup something like a singleton where I create
> > $permission = new Permission();
> > $permission = new Permission();
> > $permission = new Permission();
> > I would like to implement this in a way that will allow me to use
> > I appreciate any suggestions. Thanks in advance.
> > Matt
> --
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||