addHook("states", function() { return db::select("*") ->from("States") ->where("`cid` = ?") ->params([$this->get("id")]); }); } }