Need DB, Model, IgnitedRecord guidance |
[eluser]Unknown[/eluser]
I have scanned some DB threads and am very excited to use IgnitedRecord. I have never used rails and in fact am most used to MS SQL and using views or stored procedures to do model stuff - new to MVC also. So, given that I know DB/SQL well but am not at all familiar with this style of programming - where would you suggest I start? (Just to make things hard, am also having to refresh on PHP...heheh...but syntax seems ok so far) I am trying to build a very simple application but am not sure how to approach the relational nature of the DB for CRUD. If I understand correctly (so far), you create Models to automate a lot of joining and special SQL queries yes? And then something like IgnitedRecord could automate things further to automate the enforcing of relationships like cascading deletes and updates? Any input, reference to tutorial, video, proper manual chapter, etc would be helpful. A very simple tutorial using a relational data would be ideal! Thanks in advance.
[eluser]m4rw3r[/eluser]
Well, IgnitedRecord can automate a lot, but not everything, so I'll make an example for you: (and I do recommend that you try the tutorials found here too) Code: class posts{ I also recommend to check the included manual, it covers a lot. The cascading deletes are something you have to do in the table constraints, not in IgnitedRecord (I'll maybe add it in a later version). |
Welcome Guest, Not a member yet? Register Sign In |