Welcome Guest, Not a member yet? Register   Sign In
dependencies between models, without using any ORM or DataMapper systems
#1

[eluser]Unknown[/eluser]
Hello everyone.
I'm writing a CRUD system using CodeIgniter, implementing some 'one to many' dependencies between models (without using any ORM or DataMapper systems) by calling methods from one model to another.

For example: in a "many Documents per User" dependency, when deleting a User, the User_Model directly calls the delete() method on the Document_Model, deleting any documents associated with it.

I’m certain there’s a better way implementing 'one to many' model relationship (without ORM, etc.. ), and would appriciate some guidance.

Thanks Alon.


Messages In This Thread
dependencies between models, without using any ORM or DataMapper systems - by El Forum - 01-30-2012, 09:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB