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 LaThu 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
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?