Jonathan Stanton Fri Aug 26 11:58:43 -0400 2011

Subject: idea: has_ function

It would be great if there was a has_ function for example
$school->has_teacher_assistant
would return bool, the table being school and the column being tacher_assistant. has would be a magic method that checks if row is null or empty.

also, why are you guys not on github?


Kien La Thu Sep 22 00:39:07 -0400 2011

I think you mean column instead of row (checks if row is null or empty)? But yeah this would be a useful addition.

We are on github https://github.com/kla/php-activerecord

(1-1/1)