Doctrine\ODM\MongoDB\Mapping\Driver\YamlDriver::loadMappingFile PHP Method

loadMappingFile() protected method

{@inheritDoc}
protected loadMappingFile ( $file )
    protected function loadMappingFile($file)
    {
        try {
            return Yaml::parse(file_get_contents($file));
        } catch (ParseException $e) {
            $e->setParsedFile($file);
            throw $e;
        }
    }