Kohana ORM syntax question

Posted by anthony on Stack Overflow See other posts from Stack Overflow or by anthony
Published on 2010-04-09T17:48:26Z Indexed on 2010/04/09 17:53 UTC
Read the original article Hit count: 523

Filed under:
|
|
|

I'm using the "join_table" function with Kohana's ORM to build a query. The following works:

$category = ORM::factory('category')->join_table('product');

But this doesn't:

$category = ORM::factory('category');
$category->join_table('product');

The documentation uses the second as an example, but it returns 0 while the first example returns "categories_products" which is correct. Any ideas?

© Stack Overflow or respective owner

Related posts about kohana

Related posts about php