Nette\Database\Structure::getBelongsToReference PHP Method

getBelongsToReference() public method

public getBelongsToReference ( $table, $column = NULL )
    public function getBelongsToReference($table, $column = NULL)
    {
        $this->needStructure();
        $table = $this->resolveFQTableName($table);
        if ($column) {
            $column = strtolower($column);
            if (!isset($this->structure['belongsTo'][$table][$column])) {
                return NULL;
            }
            return $this->structure['belongsTo'][$table][$column];
        } else {
            if (!isset($this->structure['belongsTo'][$table])) {
                return [];
            }
            return $this->structure['belongsTo'][$table];
        }
    }