ridwanskaterock / cicool

Cicool is a multifunctional application that is used to facilitate your work in creating a system, CMS, E-Comerce and others
20 stars 13 forks source link

Adding an attribute to output #391

Open Fede72 opened 4 years ago

Fede72 commented 4 years ago

Hi,

I have a typical situation where I have an "Object" and his "image(s)" in differents tables.

Because a single object may have more than one tables there is a relationship table.

Is it possibile to have the output of the Object with his images (or a single image) adding an attribute to this schema?

Is it not a real composition, only a simple Join (my alternative. however, is to create a view).

Thanks

Federico

ridwanskaterock commented 4 years ago

yes possible you can join for output on your controller

[image: image.png]

[image: image.png]

for make relationship you can read on the doc https://codeigniter.com/userguide3/database/query_builder.html

On Sun, May 17, 2020 at 5:16 AM Fede72 notifications@github.com wrote:

Hi,

I have a typical situation where I have an "Object" and his "image(s)" in differents tables.

Because a single object may have more than one tables there is a relationship table.

Is it possibile to have the output of the Object with his images (or a single image) adding an attribute to this schema?

Is it not a real composition, only a simple Join (my alternative. however, is to create a view).

Thanks

Federico

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ridwanskaterock/cicool/issues/391, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGXJLPEZCQ7YEUW4LBXZ33RR4GCDANCNFSM4NDDELSQ .

--

Muhamad Ridwan Software Engineer | Cicool Engine m: +62 812 1310 9812 e: ridwanskaterocks@gmail.com Bogor West Java - Indonesia www.go-moment.com http://go-moment.com [image: facebook icon] [image: twitter icon] [image: youtube icon] [image: linkedin icon]