1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.Models.CMS.CmsAddress.dcm.yml
2013-03-14 21:18:54 +01:00

65 lines
1.4 KiB
YAML

Doctrine\Tests\Models\CMS\CmsAddress:
type: entity
table: cms_address
entityListeners:
CmsAddressListener: ~
namedNativeQueries:
find-all:
resultSetMapping: mapping-find-all
query: SELECT id, country, city FROM cms_addresses
find-by-id:
name: find-by-id
resultClass: CmsAddress
query: SELECT * FROM cms_addresses WHERE id = ?
count:
name: count
resultSetMapping: mapping-count
query: SELECT COUNT(*) AS count FROM cms_addresses
sqlResultSetMappings:
mapping-find-all:
entityResult:
address:
entityClass: CmsAddress
fieldResult:
0:
name: id
column: id
1:
name: city
column: city
2:
name: country
column: country
mapping-without-fields:
name: mapping-without-fields
entityResult:
address:
entityClass: CmsAddress
mapping-count:
name: mapping-count
columnResult:
count:
name: count
id:
id:
type: integer
generator:
strategy: AUTO
fields:
country:
type: string
length: 50
city:
type: string
length: 50
zip:
type: string
length: 50
oneToOne:
user:
targetEntity: CmsUser
inversedBy: address
joinColumn:
referencedColumnName: id