X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=vendor%2Fdoctrine%2Form%2Ftests%2FDoctrine%2FTests%2FORM%2FMapping%2Fyaml%2FDoctrine.Tests.ORM.Mapping.User.dcm.yml;fp=vendor%2Fdoctrine%2Form%2Ftests%2FDoctrine%2FTests%2FORM%2FMapping%2Fyaml%2FDoctrine.Tests.ORM.Mapping.User.dcm.yml;h=5c10185608e6dad08c28b0ebc38c55fd13d33fe5;hb=8b04b2d11798dee4f3e1358e4f43e97a6df851f6;hp=0000000000000000000000000000000000000000;hpb=73568cf05a785a45f94ca3f2351d9e07bf917958;p=zf2.biz%2Fapplication_blanche.git diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.ORM.Mapping.User.dcm.yml b/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.ORM.Mapping.User.dcm.yml new file mode 100644 index 0000000..5c10185 --- /dev/null +++ b/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.ORM.Mapping.User.dcm.yml @@ -0,0 +1,76 @@ +Doctrine\Tests\ORM\Mapping\User: + type: entity + table: cms_users + options: + foo: bar + baz: + key: val + namedQueries: + all: SELECT u FROM __CLASS__ u + id: + id: + type: integer + generator: + strategy: AUTO + sequenceGenerator: + sequenceName: tablename_seq + allocationSize: 100 + initialValue: 1 + fields: + name: + type: string + length: 50 + nullable: true + unique: true + options: + foo: bar + baz: + key: val + email: + type: string + column: user_email + columnDefinition: CHAR(32) NOT NULL + oneToOne: + address: + targetEntity: Address + inversedBy: user + joinColumn: + name: address_id + referencedColumnName: id + onDelete: CASCADE + cascade: [ remove ] + oneToMany: + phonenumbers: + targetEntity: Phonenumber + orphanRemoval: true + mappedBy: user + orderBy: + number: ASC + cascade: [ persist ] + manyToMany: + groups: + targetEntity: Group + joinTable: + name: cms_users_groups + joinColumns: + user_id: + referencedColumnName: id + nullable: false + unique: false + inverseJoinColumns: + group_id: + referencedColumnName: id + columnDefinition: INT NULL + cascade: + - all + lifecycleCallbacks: + prePersist: [ doStuffOnPrePersist, doOtherStuffOnPrePersistToo ] + postPersist: [ doStuffOnPostPersist ] + uniqueConstraints: + search_idx: + columns: name,user_email + indexes: + name_idx: + columns: name + 0: + columns: user_email \ No newline at end of file