1
0
mirror of synced 2025-03-06 12:56:10 +03:00

Merge pull request #6478 from lcobucci/fix-yaml-tests

Fix YAML related tests
This commit is contained in:
Marco Pivetta 2017-05-30 14:05:19 +02:00 committed by GitHub
commit 205ee72e33
3 changed files with 6 additions and 4 deletions

View File

@ -800,6 +800,10 @@ class YamlDriver extends FileDriver
*/
protected function loadMappingFile($file)
{
if (defined(Yaml::class . '::PARSE_KEYS_AS_STRINGS')) {
return Yaml::parse(file_get_contents($file), Yaml::PARSE_KEYS_AS_STRINGS);
}
return Yaml::parse(file_get_contents($file));
}
}

View File

@ -135,7 +135,6 @@ Doctrine\Tests\Models\CMS\CmsUser:
name: address_id
referencedColumnName: id
cascade: [ persist ]
oneToOne:
email:
targetEntity: CmsEmail
orphanRemoval: true

View File

@ -52,7 +52,6 @@ Doctrine\Tests\Models\Company\CompanyPerson:
name: address_id
referencedColumnName: id
cascade: [ persist ]
oneToOne:
email:
targetEntity: CmsEmail
orphanRemoval: true