Expected Fields Mapped From Relations

Posts   
 
    
Filomeno
User
Posts: 14
Joined: 24-Oct-2007
# Posted on: 14-May-2008 09:47:23   

Hello Experts, I'm trying to generate LLBLGen Pro v2.5 wherein I'm expecting my product table to have ProductCollectionViaProductRelated fied mapped from relations. I'm wondering why is it that LLBLGen Pro could only create a collection field based from m:n relation if there's another table, otherwise none.

Attached is my simple diagram.

o **ProductDetailCollectionViaProductAccessory **is included

but

o **ProductCollectionViaProductRelated **is not included..

Did I miss something?

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14952
Joined: 21-Aug-2005
# Posted on: 14-May-2008 10:01:09   

m:n relation to the same table are not generated by default, you should manually define them in the Designer.

Filomeno
User
Posts: 14
Joined: 24-Oct-2007
# Posted on: 14-May-2008 10:10:47   

I have already tried but I couldn't add the Second relation. Did you tried to look at my diagram?

After I have added the first relation between Product and ProductRelated there's no available relations for the second.

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14952
Joined: 21-Aug-2005
# Posted on: 14-May-2008 10:50:23   

Yes I've seen the diagram, would you please attach the lgp file, or a repro one.

Filomeno
User
Posts: 14
Joined: 24-Oct-2007
# Posted on: 14-May-2008 10:54:24   

Here's my diagram when I tried to add a custom relations in my product entity.

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14952
Joined: 21-Aug-2005
# Posted on: 14-May-2008 11:24:27   

My mistake, I forgot that M:n relations with self are currently not supported through the designer.

Please check the following threads: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=12540 http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=4150

Filomeno
User
Posts: 14
Joined: 24-Oct-2007
# Posted on: 14-May-2008 11:29:51   

Ok thanks for the info.