kohana/orm — pull request #47 by jimktrains (2011-11-30 03:42:45+00:00)
Title: Feature Request #4349: Add has_any function to ORM

Adds has_any function. Checks if any of a relationship exists.

Also adds a count_relationships function.

http://dev.kohanaframework.org/issues/4349