Welcome Guest, Not a member yet? Register   Sign In
CodeExtinguisher Release Candidate 11

[eluser]sanct_arvin[/eluser]
post deleted

[eluser]ibagur[/eluser]
hi, could anyone illuminate my way with the following issue? thanks:

i got a couple of tables, let's say one is called 'albums' and stores the title of an album, artist, etc. The other table is called songs and stores the titles of the songs for each album. Both tables can be related through a 'songs.id_album' that corresponds to 'album.id'.

I would like that everytime I delete an album using my form, then the associated songs get deleted from the 'songs' table. I guess I can acommplish these with a little bit of programming on the controller side, but I wonder whether it's there any other way to relate those tables, i.e. via the YAML description file.

Thanks everyone,

i.

[eluser]Majd Taby[/eluser]
Just wondering, are you using RC 11? you should switch to 14.2

[eluser]Majd Taby[/eluser]
Just to expand, if you use 14.2, you can use the OneToMany plugin to establish a one album to many songs relationship (you may want to change songs.id_album to songs.album_id...it's more idiomatic




Theme © iAndrew 2016 - Forum software by © MyBB