1
0
mirror of synced 2025-02-03 13:59:27 +03:00
doctrine2/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.PHPSLC.php

17 lines
280 B
PHP
Raw Normal View History

<?php
use Doctrine\ORM\Mapping\ClassMetadataInfo;
$metadata->enableCache(
[
'usage' => ClassMetadataInfo::CACHE_USAGE_READ_ONLY
]
);
$metadata->mapManyToOne(
[
'fieldName' => 'foo',
'id' => true,
'targetEntity' => 'PHPSLCFoo'
]
);