string - Kohana ORM Result - How to display? -


maybe simple, got big problem with... orm result.

i'm loading object relation using with(). generates following query:

select `article`.`id` `article:id`, `article`.`name` `article:name` 

now's question... how display article name in view? sorry dumb question, can't beliebe i'm asking it.

edit
here's code:

$activity = $user->activity->with('article')->where('article.status', '=', 1)->find_all()->as_array(); 

relations correct sure. can swear saw similar today morning on kohana forums cannot find it.

cheers!

i haven't tested work if this:

$activities = $user->activity->with('article')->where('article.status', '=', 1)->find_all(); foreach($activities $activity) {   echo $activity->name.'<br />'; } 

Comments

Popular posts from this blog

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

apache - Add omitted ? to URLs -

php - How can I stop spam on my custom forum/blog? -