fsauter/crudy — Issue #1: Detect field type to choose between get or is as accessor name.
Author: fsauter
Created: 2011-12-04 06:06:11+00:00
State: open

Detect field type to choose between get or is as accessor name.

E.g.

TINYINT(1) -> isActiv();
VARCHAR(X) -> getActive();

if($user->isActive()) ...