Prado\Data\ActiveRecord\Relations\TActiveRecordRelation::setResultCollection PHP Метод

setResultCollection() защищенный Метод

Populates the result array with foreign objects (matched using foreign key hashed property values).
protected setResultCollection ( array &$results, array &$collections, $properties )
$results array
$collections array
    protected function setResultCollection(&$results, &$collections, $properties)
    {
        if (is_array($results) || $results instanceof \ArrayAccess) {
            for ($i = 0, $k = count($results); $i < $k; $i++) {
                $this->setObjectProperty($results[$i], $properties, $collections);
            }
        } else {
            $this->setObjectProperty($results, $properties, $collections);
        }
    }