Luís Cobucci
74ce8913fc
Upgrade phpstan to 0.9
...
Applying the necessary fixes.
2017-12-17 00:55:50 +01:00
Dariusz Ruminski
c7d6d62393
Use newer PHP syntax
2017-09-06 01:32:49 +02:00
Marco Pivetta
e1acba3ae4
#6593 #5864 reverted all public/protected API parameter and return type changes
...
That's still to be considered a BC break, since child classes are broken if incompatible.
Sorry @tPl0ch :-(
2017-08-16 19:53:32 +02:00
Thomas Ploch
e4006e533c
[FX] Use single quotes for XML root in XmlExporter
2017-08-16 12:26:33 +02:00
Thomas Ploch
b1e091b0e1
[FX] Looking up PHP internal functions from the root namespace is faster
2017-08-16 12:25:31 +02:00
Thomas Ploch
599865528e
[CS] Remove obsolete doc blocks #2
2017-08-16 12:24:37 +02:00
Thomas Ploch
fe88422e68
[CS] Remove obsolete doc blocks
2017-08-16 12:24:00 +02:00
Thomas Ploch
741819f060
Revert "Minor coding style fixes and more docblock removal"
...
This reverts commit ec3eed68ca0551edc33fb1dc94a604d84857a122.
2017-08-15 10:28:43 +02:00
Thomas Ploch
ec3eed68ca
Minor coding style fixes and more docblock removal
2017-08-15 10:17:20 +02:00
Thomas Ploch
b7ae5b4afb
Entity listeners are now processed by exporters
...
The current implementation of the exporters are not taking the entity
listeners into account. I have added test cases for most of the edge
cases I could think of and implemented the Exporter handling.
This PR originates from https://github.com/doctrine/doctrine2/pull/5864 ,
I was overwhelmed by the amount of conflicts I had to resolve so I
started anew on a clean master HEAD.
Squashed commits:
- Code review aftermath
- Add even more return type declarations
- Added `return null` to methods declared with nullable return types
- Removed unneeded docblocks when types are self-explanatory
2017-08-15 10:08:50 +02:00
Michael Moravec
74c48c201d
Push PHPStan to level 1
2017-06-30 00:27:50 +02:00
Luís Cobucci
234989d069
Use short-array syntax on "lib" directory
2016-12-08 00:31:12 +01:00
Thomas Ploch
ea788fb734
Exporters should only inspect joinColumns
for owning side in bi-directional OneToOne
...
rebased commits:
- Added test case for bi-directional OneToOne in YamlExporter
- Only inspect joinColumns for owning side in bi-directional OneToOne in YamlExporter
- Adding bi-directional test case without joinColumn to XmlExporter test
- Same testcase also applied to PhpExporter
- Fixing bi-directional issue in PhpExporter when inspecting joinColumns index
- Implemented @Ocramius suggestions
2016-06-08 13:24:43 +02:00
Jeroen Thora
6dcb97a20e
Fixed many small phpcs issues
2015-12-11 20:30:41 +01:00
Benjamin Eberlei
2b3648c725
[DCOM-293] Fix security misconfiguration vulnerability allowing local remote arbitrary code execution.
2015-08-31 14:16:50 +02:00
Fedik
c1eff7045a
XML export driver: fix export options
2014-12-07 13:05:19 +02:00
Marco Pivetta
ce308dc476
#1204 - refactored sequence-generator metadata exporting into own private method for simplicity
2014-12-04 14:00:05 +01:00
Paulo de Freitas
aa1454562c
Fix sequence-generator in MetaData exporter for XML Driver.
2014-12-04 14:00:05 +01:00
Guilherme Blanco
df806977c6
Updated fix for HHVM.
2014-04-18 03:05:41 +00:00
Guilherme Blanco
9441e063aa
Updated XML Exporter to deal with some HHVM weirdness.
2014-04-18 03:04:04 +00:00
Guilherme Blanco
4029dc2ea8
Merge pull request #988 from holtkamp/DDC-3047-Exporter-association-fetch-modes
...
Exporter support for association fetch modes
2014-04-16 00:52:51 -04:00
Benjamin Eberlei
da24133306
Merge pull request #980 from adrianolek/convert-mapping-options
...
Added options attribute export to Annotation, Xml & Yaml exporters.
2014-04-13 23:38:30 +02:00
Menno Holtkamp
8d0a5958eb
Code-style improvement
2014-03-31 11:02:36 +02:00
Menno Holtkamp
59842e9bc6
Code-style improvement
...
Also to trigger Travis CI
2014-03-31 11:00:50 +02:00
Menno Holtkamp
798075931a
Exporter support for association fetch modes
2014-03-26 01:00:17 +01:00
Benjamin Eberlei
927d69b61a
Merge pull request #957 from thealjey/master
...
makes doctrine less dependent upon the symfony yaml component
2014-03-23 15:41:27 +01:00
Menno Holtkamp
ef4e73f987
Use boolean values for 'unique' attribute
...
As defined in: https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd#L294
Same as 'nullable' attribute.
It was being exported as a "1" for TRUE and "0" for false
2014-03-20 11:08:29 +01:00
Adrian Olek
49587776fa
Renamed _exportOptions method
2014-03-16 17:31:15 +01:00
Adrian Olek
553883bdd1
Added options attribute export to Annotation, Xml & Yaml
...
exporters.
2014-03-16 16:50:41 +01:00
Eugene Kuzmenko
c06201303d
makes doctrine less dependent upon the symfony yamp component
2014-02-20 09:28:44 +00:00
Guilherme Blanco
b65d9e6c83
Merge pull request #896 from holtkamp/patch-2
...
Ensure <cascade/> elements preceed <join-columns/>
2014-01-05 11:32:31 -08:00
Menno Holtkamp
fc2b9980ae
Exclude exporting inheritanceType for INHERITANCE_TYPE_NONE
2014-01-05 18:53:31 +01:00
Menno Holtkamp
797fb9c34a
Respected 'inheritanceType' at Entity level
...
It was (incorrectly) fetched from Table-level.
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/annotations-reference.html#annref-inheritancetype
2014-01-05 18:41:55 +01:00
Menno Holtkamp
85a16f9f28
Ensure <cascade/> elements preceed <join-columns/>
...
When converting annotations based metadata to XML, the position of the <cascade/> elements resulted in XSD validation errors caused by the definitions of the association ComplexTypes:
- https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd#L463
- https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd#L482
- https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd#L495
- https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd#L517
Since changing the XSD might result in validation problems in existing mappings, changing the XmlExporter seems a better approach.
Note that the '<cache/>' element is not yet generated by the XmlExporter, but according to the XML Schema, it should precede the '<cascade/>' element.
2014-01-05 15:34:59 +01:00
Peter Kokot
dca09148ca
CS fixes
2013-09-22 02:12:30 +02:00
Benjamin Eberlei
b53f4fd4cc
[DDC-2280] length attribute in <id> was not converted.
2013-05-09 18:15:41 +02:00
Benjamin Eberlei
6d02c7e1a5
[DDC-2136] Fix exporting to YAML and XML with assocation keys.
2013-05-01 23:10:13 +02:00
Benjamin Eberlei
92b41e017a
[DDC-2407] Fix missing support for UUID and CUSTOM id generators in Exporter
2013-04-20 10:25:36 +02:00
Benjamin Morel
2524c878b6
Fixed documentation for Doctrine\ORM\Tools\Export
2012-12-14 13:02:12 +00:00
Christophe Coevoet
5a6c398ea0
Fixed coding standards in the Tools namespace
2012-11-03 16:37:31 +01:00
jakoch
d4a6c488ca
fixed use statements
2012-10-12 13:53:20 +02:00
Benjamin Eberlei
a5e043e6e6
Merge pull request #444 from goetas/xmlfix
...
Fixed some typo error in XML Exporter
2012-10-05 14:16:59 -07:00
Benjamin Eberlei
f7220ae416
Merge pull request #455 from radmar/master
...
Fixed unique-constraint name in XML Exporter
2012-10-05 11:23:55 -07:00
barelon
3b27216c51
add empty lines around if block
2012-10-02 00:14:24 +03:00
barelon
cd37ec47d5
Set 'cascade' => 'all' if all cascade options set
2012-09-30 01:16:21 +03:00
Marcin Radziwoński
380f4fbac7
Fixed unique-constraint name in XML Exporter
2012-09-26 14:27:16 +02:00
Asmir Mustafic
bc277c6e28
spaces
2012-09-13 11:04:23 +02:00
Asmir Mustafic
f86dcfc288
typo fix
2012-09-13 09:40:14 +02:00
Cas
de5b20d0bf
Update lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php
...
Allow 'nullable' attribute to be exported for fields, something which already worked in YamlExport. This addition saved me a lot of time during development, not having to manually re-factor after each export.
Don't know why this was missing, maybe it's me who is missing something, so let me know ;)
2012-09-13 03:43:27 +03:00
Marco Pivetta
aa0cb0b6d7
DDC-1939 - Removing references to non-existing AssociationMapping class
2012-07-24 11:37:57 +02:00