JSONable behavior for phalcon's models