public function whereMod($field, $divisor, $remainder) { $this->where($field, array('$mod' => array((int) $divisor, (int) $remainder))); return $this; }