public distinctOn ( array | string $property ) : |
||
$property | array | string | The property or properties to make distinct. |
Результат |
public function distinctOn($property)
{
if (!is_array($property)) {
$property = [$property];
}
foreach ($property as $prop) {
$this->query['distinctOn'][] = $this->propertyName($prop);
}
return $this;
}