Ryan Weaver
0e08633790
Adding docblock
2015-02-04 13:51:02 -05:00
Ryan Weaver
75bb3a0de3
Small code change thanks to the comments and adding a test
2015-02-04 13:49:51 -05:00
Ryan Weaver
b30d1dd39c
Only getting the target platform when it's *actually* needed to avoid errors
...
initialize() is called sometimes, even when the following code doesn't need
the targetPlatform property. Specifically, in AbstractClassMetadataFactory::getAllMetadata().
But as of DBAL 2.5.0, calling Connection::getDatabasePlatform() will make a
connection to the database, which means that sometimes it may fail (e.g. you
haven't configured your database yet). As a result, calling a method like
AbstractClassMetadataFactory::getAllMetadata() - which does not need the
targetPlatform - will fail, because determining the targetPlatform requires
a connection, which fails.
This avoids that - we only get the targetPlatform *when* we need it, which
are cases where we're doing things that do indeed need a connection.
2015-01-28 20:17:28 -05:00
Marco Pivetta
cd3ffa8f14
#1130 DDC-3300 - removing typo causing parse error
2015-01-22 09:44:40 +01:00
Marco Pivetta
e969a6be85
#1130 DDC-3300 - rewording and clarifying logic that re-maps discriminator values when needed
2015-01-22 09:44:39 +01:00
Marco Pivetta
a36bea2951
#1130 DDC-3300 - optimizing performance (looping over existing classes first): throwing exceptions if the class is not found in the discriminator map
2015-01-22 09:44:39 +01:00
Marco Pivetta
786c34faa5
#1130 DDC-3300 - refactoring auto-remapping of discriminator value into a private method
2015-01-22 09:44:38 +01:00
Marco Pivetta
c589b5d013
#1130 DDC-3300 - re-mapping discriminator column at runtime (based on modified class metadata)
2015-01-22 09:44:38 +01:00
Marco Pivetta
935a79e15f
#1133 DDC-3305 - minor cs fix (spacing)
2015-01-16 19:46:04 +01:00
Marco Pivetta
7e4dab17ec
#1133 DDC-3305 - test case with embeddable without referenced embeddable class
2015-01-16 19:45:16 +01:00
Javier Spagnoletti
705a7d2cc2
[Embeddables] Improved exception message when embeddables is missing 'class' attribute.
2015-01-16 19:18:46 +01:00
Marco Pivetta
3ba9689448
#881 DDC-2825 - aligning assignments
2015-01-14 18:19:22 +01:00
Michaël Perrin
54b3c0548d
Fix persistence exception on a table with a schema on a platform without schema support
2015-01-14 15:48:49 +01:00
Marco Pivetta
8ea394e778
#385 #1181 DDC-3385 - removing @todo
that was discussed/cleared
2015-01-13 20:33:10 +01:00
Marco Pivetta
a710706c81
#385 #1181 DDC-3385 - optimized imports, removing duplicate imports (caused by rebase conflicts)
2015-01-13 20:00:40 +01:00
Marco Pivetta
e4cbdb57ad
Enabling fallback logic in metadata loading
2015-01-13 19:50:55 +01: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
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
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
Eduardo García Sanz
8a3def097f
[DDC-3027] Avoid duplicated mapping using Embedded in MappedSuperclass
2014-04-30 11:46:54 +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
Steve Müller
337857dc8a
add general IDENTITY generator type support for sequence emulating platforms
2013-12-29 05:55:16 +01:00
Fabio B. Silva
3140593e9b
Second level cache
2013-12-16 11:05:04 -05:00
Johannes M. Schmitt
ece62d6ad7
adds support & tests for embeddables in inheritance schemes
2013-11-02 13:23:56 +01:00
Johannes M. Schmitt
38b041d909
Merge remote-tracking branch 'origin/ValueObjects'
...
Conflicts:
lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
2013-11-01 20:17:43 +01:00
Brikou CARRE
84b980227f
s/PostgreSQLPlatform/PostgreSqlPlatform/
2013-10-21 09:44:48 +02:00
Fabio B. Silva
7c2da2d5b8
Fix DDC-2415
2013-04-26 16:11:04 -03:00
Benjamin Eberlei
0204a8b69a
[DDC-93] Implement first working version of value objects using a ReflectionProxy object, bypassing changes to UnitOfWork, Persisters and Hydrators.
2013-03-27 00:10:30 +01:00
Marco Pivetta
7afe5af73a
Fix for DDC-2359
2013-03-24 19:42:50 +01:00
Pascal Borreli
a2cd0f5804
Fixed typos
2013-03-11 00:08:58 +00:00
Fabio B. Silva
6b7e588da5
fix CS
2013-01-29 12:14:52 -02:00
Fabio B. Silva
368cf73f89
entity listeners mapping
2013-01-29 12:14:51 -02:00
Benjamin Eberlei
eedf85cbdb
[DDC-2243] Fix bug where a bigint identifier would be casted to an integer, causing inconsistency with the string handling.
2013-01-20 20:31:22 +01:00
Benjamin Morel
46e6ada4f9
Fixed documentation for ORM\Mapping
2012-12-03 09:36:08 +00:00
jakoch
d4a6c488ca
fixed use statements
2012-10-12 13:53:20 +02:00
Christophe Coevoet
8d0f49f227
Updated the classmetadata factory for Common 2.3
...
This adds the new method introduced in doctrine/common#162
2012-07-06 22:18:06 +02:00
Marco Pivetta
97d7cae012
Stoffing and including changes of doctrine/common#138
2012-07-04 20:59:22 +02:00
Marco Pivetta
f6381d7b76
Updating ClassMetadataFactory to comply with new abstract CMF interface as of doctrine/common#150
2012-07-04 20:59:21 +02:00
Marco Pivetta
94714db132
Fixing code sniff issues before continuing refactoring of
2012-07-04 20:59:21 +02:00
Marco Pivetta
e522391ee9
Reusing Doctrine\Common's AbstractClassMetadataFactory
2012-07-04 20:59:21 +02:00
Marco Pivetta
905acf9176
Removing Doctrine\ORM\Mapping\Driver\Driver interface
...
Interface has been moved to Doctrine\Common\Persistence\Mapping\Driver\MappingDriver
2012-07-04 20:59:21 +02:00
Fabio B. Silva
ca4862aabc
Fix CS
2012-06-23 14:19:47 -03:00
Fabio B. Silva
65efda425f
Fix CS
2012-06-18 15:24:52 -03:00
Fabio B. Silva
85b6f8dc2f
change quote strategy to interface
2012-06-18 14:43:00 -03:00
Fabio B. Silva
a75c672ee7
fix sequence and join columns
2012-06-18 14:42:57 -03:00
Benjamin Eberlei
70458b2f48
LGPL => MIT
2012-05-26 14:37:00 +02:00
Benjamin Eberlei
bd41e69a1f
Merge DDC-1542 into master
2012-05-04 23:20:57 +02:00