public function distinctOn($property) { if (!is_array($property)) { $property = [$property]; } foreach ($property as $prop) { $this->query['distinctOn'][] = $this->propertyName($prop); } return $this; }