Thursday, July 8, 2010

Re: Database Design Question

cricket was right :D ty

On Jul 8, 9:56 pm, duderion <adrian.g...@googlemail.com> wrote:
> hi guys,
>
> thanks alot for all your help
>
> i could solve the problem like this:http://book.cakephp.org/view/851/Multiple-relations-to-the-same-model
>
> tx alot :D
> duderion
>
> On 6 Jul., 19:42, bladefarm <bladef...@gmail.com> wrote:
>
>
>
> > hi pips!
> > i need ur help.
> > i'v got 2 models: prospects and programs.
> > prospects saves records of prospects for one or more programs while
> > programs have records of the different disciplines offered.
> > the prospects model looks like this:
> > create table prospects(
> > ... ....,
> > ... ....,
> > program_first_id int(11) not null,
> > program_second_id (int(11) not null,
> > foreign key (program_first_id) references programs(id),
> > foreign key (program_second_id) references programs(id),
> > ... ...);
>
> > the SQL code executes without any trouble. how do i name both
> > program_first_id and program_second_id more appropriately so i can
> > easily use the cake bake command (cakePHP looks for both
> > program_firsts and program_seconds)?
> > thanks pips!

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: