1
0
mirror of synced 2025-01-10 19:17:10 +03:00
doctrine2/tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.Models.Cache.City.dcm.yml

36 lines
910 B
YAML
Raw Normal View History

2013-02-14 02:42:13 +04:00
Doctrine\Tests\Models\Cache\City:
type: entity
table: cache_city
cache:
usage : READ_ONLY
id:
id:
type: integer
id: true
generator:
strategy: IDENTITY
fields:
name:
type: string
manyToOne:
state:
targetEntity: Doctrine\Tests\Models\Cache\State
inversedBy: cities
joinColumns:
state_id:
referencedColumnName: id
cache:
usage : READ_ONLY
manyToMany:
travels:
targetEntity: Doctrine\Tests\Models\Cache\Travel
mappedBy: visitedCities
oneToMany:
attractions:
targetEntity: Doctrine\Tests\Models\Cache\Attraction
mappedBy: city
cache:
usage : READ_ONLY
orderBy:
name: ASC