/** * Factory shortcut function to do a search for the specific records and return them as a raw array. * * @static * * @param array $where * @param null $limit * @param null $order * * @return array */ public static function FindRaw($where = [], $limit = null, $order = null) { $fac = new ModelFactory(get_called_class()); $fac->where($where); $fac->limit($limit); $fac->order($order); //var_dump($fac); return $fac->getRaw(); }