Sorry, I forgot to tell my associate model:

User: hasmany Presentation;
Presentation: belongsto User, belongsto Type, hasone Movie;
File : hasmany Movie , hasmany Sign;
Type: hasmany Presentation;
Movie: belongsto File, belongsto Presentation, hasmany Sign, hasmany  
Text;
Sign: belongsto File, belongsto Movie;
Text: belongsto Movie

My associations is like

                                                     File
                                                   /         \
                                                 /             \
User -> Presentation -> Movie -> Sign
                        /                        \
        Type  <--                             --> Text

Thanks for answer. I'm asking because I only can get what I need  
doing an direct select on my database. I want to display a mini- 
slideshow when user load an movie, changing
sign( gif or jpeg file) while seeing the movie.

Em 09/06/2007, às 05:33, Dr. Tarique Sani escreveu:

>
> On 6/9/07, Alexandre Gonçalves Jacaranda <[EMAIL PROTECTED]> wrote:
>>
>> Hello, everybody!!
>>
>> I've a database model like this :
>>
>> files ( id, path, name);
>> signs ( id, file_id, time)
>>
> Read up http://manual.cakephp.org/chapter/models - pay attention to
> the associations section
>
> Tarique
>
> -- 
> =============================================================
> Cheesecake-Photoblog: http://cheesecake-photoblog.org
> PHP for E-Biz: http://sanisoft.com
> =============================================================
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to