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