lastcraft:
is Active record like:
Code:
Class Something
{
function save()
{
if ($this->id is null)
{
// insert
}
else
{
// update
}
}
function load($id)
{
}
}
I already began do that in the last code I dev'ed for my prototype if that is it... it is not bad, but when beginning to deal with a lot of collection, etc. I guess I might want to try that lazyload stuff (I guess that lazyload pattern is load it when you need, I thought to do stuff like that.) I have typed some draft code (for idea on how to do different thing) yesterday and I will probably show it if I need to get a proof of concept.
Is the book from Fowled explain the pattern clearly, etc. (I guess so) and is there any "good tutorial" on the same pattern over the net. I guess I should buy the book and read it slowly, it mights show what I thought and what is the "best way" to do the thing I though (see think about the thing I have not anticipated I guess)
Bookmarks