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);
    }