Prado\Data\ActiveRecord\Relations\TActiveRecordHasManyAssociation::collectForeignObjects PHP Метод

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

Get the foreign key index values from the results and make calls to the database to find the corresponding foreign objects using association table.
protected collectForeignObjects ( &$results )
    protected function collectForeignObjects(&$results)
    {
        list($sourceKeys, $foreignKeys) = $this->getRelationForeignKeys();
        $properties = array_values($sourceKeys);
        $indexValues = $this->getIndexValues($properties, $results);
        $this->fetchForeignObjects($results, $foreignKeys, $indexValues, $sourceKeys);
    }