public function loadFromFile()
    {
        $this->getLogger()->debug('Reading relationships from ' . $this->defFile);
        $relsFromFile = Yaml::parse($this->defFile);
        if (!is_array($relsFromFile)) {
            $relsFromFile = array();
            $this->getLogger()->warning('No definition found in relationships file.');
        }
        $rels = array();
        foreach ($relsFromFile as $relsData) {
            $rels[$relsData['relationship_name']] = $relsData;
        }
        ksort($rels);

        return $rels;
    }