From: "Jonathan Wage" <jonw...@gmail.com>
Date: Fri, 16 May 2008 13:59:36 -0500
Local: Fri 16 May 2008 19:59
Subject: Re: [doctrine-user] Re: Unique rows with auto increment
In your listener use $this->assignIdentifier($permission[0]->id); instead of - Jon On Thu, May 15, 2008 at 10:32 PM, Matt Hulse <matt.hu...@gmail.com> wrote: -- > Jon, thanks for the response. > I explored listeners and hooks and here is what I came up with: > public function preInsert($event) > array($this->controller, $this->action)); > 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: > > - Jon > > On Thu, May 15, 2008 at 5:22 PM, Matt Hulse <matt.hu...@gmail.com> > > > 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 > > -- Jonathan Wage http://www.jwage.com http://www.centresource.com 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.
| ||||||||||||||