Cvetomir
a46e794b60
Re-order attributes of relation complex types
...
This will provide the same look for all of the relations: one-to-many, many-to-one, one-to-one, many-to-many.
It helps during auto-completion of XML code when creating XML schema for an entity.
The order is as follows: field, target-entity, mapped-by, inversed-by, indexed-by, fetch, orphan-removal.
2017-12-17 02:36:41 +01:00
Grégoire Paris
2a865177b9
Disallow orphan removal attribute on many-to-one
...
It only makes sense for collections, and there is no collection here.
Plus the docs do not say it is supported.
See
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/working-with-associations.html#orphan-removal
2017-10-13 16:38:02 +02:00
mike
a54a258866
More refinement of the xml dtd
2017-08-02 22:58:05 +02:00
Marco Pivetta
33cee11e6f
Merge pull request #6389 from mikeSimonson/xml-dtd-improvements
...
XSD definition improvements
2017-06-21 08:08:14 +02:00
Maximilian Bosch
92476b5953
#5934 - add fetch
option to AssociationOverride
in order to override fetch strategy for subclasses of entities
2017-05-30 18:19:48 +02:00
mike
0865181702
Do not force an order of definition in the entity elements
2017-04-11 09:43:50 +02:00
mike
b43325760d
Add a type for the class FQCN
2017-04-11 09:43:31 +02:00
mike
f537eb2915
Add a table name type that accept quoted table name
2017-04-11 09:43:25 +02:00
ismail BASKIN
fafb8166f4
Fix custom-id-generator class attribute type
...
custom-id-generator tag's attribute type must be FQCN. But NMTOKEN type doesn't support backslash character.
2016-05-22 19:36:15 +03:00
z38
ff28507b88
Allow override of inversedBy
2015-11-05 12:11:29 +01:00
Andrey Knupp Vital
c964dd0cd2
Adding use-column-prefix
attribute as proposed (DDC-3293) #1239
2015-01-08 00:09:30 -02:00
Adrien Crivelli
27adf8d6e9
Refactor partial into options array
...
This coherent with what is done for Table. All platform specific things
are grouped into an options array. Eventually flags should be migrated
into options as well.
2014-07-22 10:32:31 +09:00
Adrien Crivelli
eeb7ff4a6d
Support for Partial Indexes for PostgreSql and Sqlite
...
Support for Partial Indexes was available in Doctrine 1 following
http://www.doctrine-project.org/jira/browse/DC-82 . This commit
reintroduce support for Doctrine 2. We use the same syntax with an
optionnal "where" attribute for Index and UniqueConstraint.
2014-07-22 10:32:30 +09:00
Stefano Torresi
391847d627
remove on-update from join-column
2014-06-19 14:27:56 +02:00
Adrian Olek
cc2fb1a070
Added index flags support in annotation, xml & yaml mapping drivers.
2014-04-14 01:21:23 +02:00
Johannes Schmitt
4f585a3d63
Merge branch 'master' of github.com:doctrine/doctrine2 into ValueObjects
...
Conflicts:
UPGRADE.md
lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php
2014-01-04 17:52:32 +01:00
Benjamin Eberlei
2feffe164a
Merge branch 'DDC-2732'
2014-01-02 23:33:56 +01:00
fabios
1bfa8f0fc3
Extract cache config
2013-12-16 11:05:04 -05:00
Fabio B. Silva
3140593e9b
Second level cache
2013-12-16 11:05:04 -05:00
Jan Kramer
928c32d616
Update XML schema to reflect addition of embeddables
2013-12-07 16:38:32 +01:00
Eduardo
333177da00
Options not respected for ID Fields in XML Mapping Driver (XSD update)
...
XSD update.
The same bug of the yaml driver: see http://www.doctrine-project.org/jira/browse/DDC-2661
2013-10-09 23:49:39 +02:00
Fabio B. Silva
b147c472be
[DDC-2429] Fix xsd definition
2013-05-13 11:04:36 -03:00
Benjamin Eberlei
9adc45767d
[DDC-2426] Missing length attribute in doctrine-mapping.xsd for <id> tag.
2013-05-04 12:58:06 +02:00
Fabio B. Silva
c60e3e4ba4
remove @LifecycleCallback
2013-01-29 12:14:52 -02:00
Fabio B. Silva
195b639344
change xml driver to use <lifecycle-callback\>
2013-01-29 12:14:52 -02:00
Fabio B. Silva
46474bf457
added doctrine-mapping.xsd
2013-01-29 12:14:52 -02:00
Fabio B. Silva
85790f0752
support for attribute override
2012-04-21 01:43:18 -03:00
Fabio B. Silva
2f67750165
added tags on doctrine-mapping.xsd
2012-04-21 01:41:05 -03:00
Fabio B. Silva
ad9d590a15
added tags on doctrine-mapping.xsd
2012-04-15 15:40:43 -03:00
Benjamin Eberlei
18e63f9cea
Merge branch 'DDC-1723'
2012-03-22 22:30:35 +01:00
Benjamin Eberlei
bc4cf21c9d
Merge velovint/SupportCustomIdGenerators
2012-03-22 22:29:15 +01:00
Attila Bukor
7f3e90e291
Fixed fetch mapping in xsd
...
It was 'EXTRALAZY' and the constant name in ClassMetadata is 'EXTRA_LAZY'
2012-03-16 17:00:12 +01:00
Benjamin Eberlei
23d004844a
[DDC-451] Adjust doctrine-mapping.xsd for new UUID generator
2012-03-12 12:52:36 +01:00
Vitali Yakavenka
78d3f647ff
Merge branch 'master' of git://github.com/doctrine/doctrine2 into SupportCustomIdGenerators
2012-02-21 09:45:16 +03:00
Benjamin Eberlei
68436fee75
[DDC-1654] Add support for orphanRemoval on ManyToMany associations. This only makes sense when ManyToMany is used as uni-directional OneToMany association with join table. The join column has a unique constraint on it to enforce this on the DB level, but we dont validate that this actually happens. Foreign Key constraints help prevent issues and notify developers early if they use it wrong.
2012-02-20 10:33:16 +01:00
Fabio B. Silva
5d01123413
Fix DDC-807, DDC-553
2012-02-13 23:22:49 -02:00
jsor
fac820f0e2
Complete custom column option implementation
...
- Support for xml driver
- Tests
2012-01-27 11:05:47 +01:00
Jan Sorgalla
d68fcd8bd2
Implement custom options on table level
2012-01-26 15:05:26 +01:00
Vitali Yakavenka
53ecedf70a
Remove support to pass arguments to custom ID generator's constructor
2012-01-08 15:20:35 +03:00
Vitali Yakavenka
353ba4dfd1
Remove trailing whitespaces and fix brace locations
2011-11-30 00:20:00 +03:00
Vitali Yakavenka
b72d150d33
Rename custom-generator to custom-id-generator in XML mappint to match name in other mapping types
2011-11-28 23:36:23 +03:00
Vitali Yakavenka
2b97f79bd3
Add support for custom ID generator in XML
2011-11-28 23:30:32 +03:00
Alan Bem
90725fa529
fixed wrong on-delete XML Schema mapping
2011-09-20 11:10:59 +02:00
Benjamin Eberlei
b83945d486
DDC-1333 - Fix bug in xsd
2011-08-21 15:06:14 +02:00
Benjamin Eberlei
3be6218341
DDC-1208 - Allow namespace separator in <discriminator-mapping />
2011-06-15 18:31:59 +02:00
Peter Kruithof
05bf8477a3
The columns
attribute of the index
type was xs:NMTOKENS
, therefore not allowing a comma, which is needed when multiple columns need to be specified. (I've checked the XmlDriver code for this)
...
It should be the same as the `columns` attribute of the `unique-constraints` type, namely `xs:string`.
2011-06-14 02:36:49 -07:00
Miha Vrhovnik
bf0775fbb6
Add extension points into the xml schema
2011-06-03 09:12:32 +02:00
Benjamin Eberlei
34ad308599
[DDC-692] Add respective metadata mapping possiblities for read-only entities and a test.
2011-03-29 20:17:44 +02:00
Guilherme Blanco
a31289b9d7
Added support to NamedQueries through ClassMetadata.
2011-03-06 18:45:09 -03:00
Benjamin Eberlei
da2dee03e2
[DDC-250] Small typo fix in xsd
2011-02-05 11:43:50 +01:00