Andrey Knupp Vital
08e8af9372
Type-hinting SimpleXMLElement
(_getCascadeMappings)
2015-01-08 09:28:15 -02:00
Andrey Knupp Vital
b90943c56b
Minor improvements
2015-01-08 09:04:37 -02:00
Andrey Knupp Vital
4935da138d
Respecting use-column-prefix
instead of relying on false/0 of column-prefix
2015-01-08 00:10:24 -02:00
Andrey Knupp Vital
8bbc492978
Removing weird strict comparison on different types
2015-01-07 17:24:44 -02:00
Andrey Knupp Vital
82cda1ecb0
Prevents prefixing a column when false
on column-prefix
(XML)
2015-01-07 17:22:48 -02:00
Marco Pivetta
cf1b16a505
#1213 - DDC-3437 - renaming variables/alignment/clarifications in docblocks
2014-12-08 01:22:20 +01:00
Austin Morris
d48546d2dd
fix instantiation of embedded object in ReflectionEmbeddedProperty
2014-12-08 01:06:11 +01:00
Guilherme Blanco
0059e01936
Merge pull request #1208 from Ocramius/hotfix/DDC-3427-class-metadata-factory-should-accept-entitymanagerinterface-instances
...
DDC-3427 - class metadata factory should accept `EntityManagerInterface` instances
2014-12-05 12:22:23 -05:00
Marco Pivetta
e65417f1f6
DDC-3427 - Adding setting an EntityManagerInterface
instance in the ClassMetadataFactory#setEntityManager()
2014-12-05 13:49:42 +01:00
Marco Pivetta
b4a23e97a9
ReflectionEmbeddedProperty
should be like any ReflectionProperty
, and should therefore extend it for type compatibility
2014-12-05 13:06:41 +01:00
Marco Pivetta
112fdf46d0
Using instantiator to work with internal PHP classes as embeddables
2014-12-05 13:00:54 +01:00
Marco Pivetta
fc3f233923
Yodaism good for you: is.
2014-12-05 11:18:10 +01:00
Marco Pivetta
1d5a0a0a1b
Adding docblocks
2014-12-05 11:17:43 +01:00
Marco Pivetta
d3b1bf571b
#1200 - removing Yaml::parse()
deprecation errors by passing in file contents instead of file paths
2014-12-04 13:37:59 +01:00
Marco Pivetta
b761d84d4f
#1196 DDC-3418 DDC-3419 - refactoring class metadata factory to avoid duplicate checks
2014-11-27 18:54:10 +01:00
Marco Pivetta
7648a3c590
#1196 DDC-3418 DDC-3419 - refactoring inherited indexes copying logic into separate private method
2014-11-27 18:52:03 +01:00
Dustin Thomson
17ec1aab77
Modified class metadata factory to have entity tables inherit indexes from mapped superclasses
2014-11-27 18:41:33 +01:00
Marco Pivetta
76e1a469ef
Merge pull request #1027 from PowerKiKi/feature-partial-indexes
...
Support for Partial Indexes for PostgreSql and Sqlite
2014-11-05 13:19:29 +01:00
Marco Pivetta
6e79515a75
Merge pull request #1123 from stof/patch-1
...
Fixed the structure of the reverse-engineered mapping
2014-08-30 04:19:55 +02:00
Guilherme Blanco
4b504c9436
Merge pull request #1109 from doctrine/hotfix/DDC-3120-php-5.6-RC3-compat
...
DDC-3120 - PHP 5.6-RC3 compatibility
2014-08-27 12:27:05 -04:00
Christophe Coevoet
00eb0d3b67
Fixed the structure of the reverse-engineered mapping
2014-08-27 13:56:02 +02:00
Guilherme Blanco
400acad533
Merge pull request #1105 from deeky666/nested-embeddables
...
Add support for nesting embeddables
2014-08-21 16:33:44 -04:00
Marco Pivetta
361ec2a474
DDC-3120 - using Doctrine\Instantiator
when building new instances
2014-08-14 15:51:48 +02:00
Saša Stamenković
133bd288bf
Minor CS fix
2014-08-12 09:57:19 +02:00
Steve Müller
0768916a06
fix handling infinite nesting of embeddables
2014-08-12 07:56:39 +02:00
Steve Müller
bca9d31531
add support for nesting embeddables
2014-08-11 16:53:18 +02:00
Adrien Crivelli
1003466a5f
Surround ! with spaces according to code style
2014-08-05 18:07:00 +09: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
Rudolph Gottesheim
daa90bf32d
Fix typo in exception message
2014-06-04 15:59:57 +02:00
Benjamin Eberlei
46ebb57b45
Fix wrong version
2014-06-03 21:41:26 +02:00
Benjamin Eberlei
e577e77867
Cleanup 93c276d
2014-06-03 17:05:02 +02:00
Marco Pivetta
72750b05e6
Using PHP_VERSION_ID
instead of version_compare
to see if we're using PHP 5.4+
2014-05-31 13:37:39 +02:00
Renaud LITTOLFF
93c276d059
Fix the "Erroneous data format for unserializing" error message
2014-05-30 10:43:11 +02:00
Eduardo García Sanz
8a3def097f
[DDC-3027] Avoid duplicated mapping using Embedded in MappedSuperclass
2014-04-30 11:46:54 +02:00
Marco Jantke
f065a5c8b9
fixed bug
2014-04-29 09:30:37 +02:00
Cédric Chandon
9ba31a394a
[DBAL-878] Wrong mapping type
...
the type should be the mapping type, and not the name of the type. This
does the difference for simple_array, as the result should be
simple_array and not simplearray
2014-04-25 01:59:15 +02:00
Marco Pivetta
a87d3e080e
Minor CS fixes on top of #973
2014-04-14 01:21:23 +02:00
Adrian Olek
eccd8f85bc
cs fixes
2014-04-14 01:21:23 +02:00
Adrian Olek
32ed32cf56
Added index flags test
2014-04-14 01:21:23 +02:00
Adrian Olek
b3a2988d2c
CS fixes
2014-04-14 01:21:23 +02:00
Adrian Olek
cc2fb1a070
Added index flags support in annotation, xml & yaml mapping drivers.
2014-04-14 01:21:23 +02: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
Marco Pivetta
e6bf096583
Prefixing alias counter with _
to fix DDC-3042 and prevent collisions
2014-04-04 03:05:48 +02:00
Adrian Olek
0caeb4edbf
Initialize table options annotation, fixed condition in AnnotationDriver
2014-03-23 14:37:55 +01:00
Adrian Olek
553883bdd1
Added options attribute export to Annotation, Xml & Yaml
...
exporters.
2014-03-16 16:50:41 +01:00
Anton Stoeckl
83ef47c8d0
This fixes ticket DDC-3028
...
Enables columnPrefix to be "false" so no prefix is added.
Changed the structure a bit (to if/else) to be more readable with the additional condition.
2014-03-14 12:34:22 +01:00
Anton Stoeckl
cd2043915c
columnPrefix must support string and boolean, so changing to mixed
2014-03-14 12:29:01 +01:00
Anton Stöckl
fa79de6ea4
Enable empty prefixes for inlined embeddable
...
This fixes http://www.doctrine-project.org/jira/browse/DDC-2987
This makes it possible to map a field from an embeddable to a database field with the same name, without any prefix added.
Example:
- an embeddable object "Id" with a property "id"
- per default this would map inline to id_id
- supplying null or '' as columnPrefix does not work due to the ! empty() check
- with my little change, if columnPrefix : false is supplied in the mapping config this will now map to a db column "id"
To build Ids as ValueObjects is a very common approach in DDD, so ihmo this is a must have.
2014-03-13 16:47:22 +01:00
Miha Vrhovnik
d888d7d1c0
Fix wrong annotation
...
Without above fix I'm getting
"[Semantical Error] The annotation "@array" in method Doctrine\ORM\Mapping\ClassMetadataInfo::mapEmbedded() was never imported. Did you maybe forget to add a "use" statement for this annotation?"
2014-03-11 14:44:42 +01:00