The only way I know I can do this is using a foreach loop, given that the model returned has an iterator.. But that doesn't seem right, as I'm only getting one model. e.g:
foreach ($entry as $e) {
$id = $e;
break;
}
How can I access the data directly?
...Alternatively, I would have like to get just the value from the id column from the table using DB::query().... But my problem is the same... When I get the result, I cant access the data doing:
http://fuelphp.com/docs/packages/orm/crud.html#/find_chaining...()->where('table_field', $value)->get_one();vs...()->where('table_field', $value)->get(); get_one() only returns one ORM Model object. Not need to iterate. get() returns an array of ORM Model objects, then it's time to use a for loop or whatever.