What kind of Model-methods do you write?

2009-10-17 Thread Martin Westin
Dumb question? I hope not. I wanted to see which is the most popular way of writing methods in models. And by which way and what kind I am referring to if the methods assume and require a loaded row from the database or not. Better use an example. Drawing from the ever present blog tutorial,

Re: What kind of Model-methods do you write?

2009-10-17 Thread robustsolution
I think I understand your question. yes by default it seems that CRUD/FIND are row level. but for custom pagination query or for one to many relationships (threads vs posts) it is not the same I liked $this-id=; In case of a single item/SSTabs, I would use the containable behavior. In