how to use function select() in orm
Closed this issue · 2 comments
resaki commented
foreach(Example_Model_Dorm::select() as $dorm)
{
$this->content .= 'Show '. $dorm->name;
}
I not use fetch() bacause i want 1 row no all row in table.
What can i do.
xeoncross commented
Each database method is for a certain result set.
db::fetch() is for all rows
db::row() is for a single row
db::column() is for a single column
If you only want a single ORM result then you need to load that object like this:
$student = new Example_Model_Student($student_id);
resaki commented
thx somuch. Umm i'm rookie.
i'm Interested in this framework and i will make member system. Could you give me a sample system for me please.
i'am Sorry, too many requests.