Ryan Weaver
52b3e21969
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-02-04 23:35:02 +00:00
Marco Pivetta
a69584a841
DDC-3120 - Using ReflectionClass#newInstanceWithoutConstructor()
also with PHP 5.6+
2014-10-06 14:26:00 +02:00
Benjamin Eberlei
859465b691
Fix wrong version
2014-06-03 21:43:21 +02:00
Benjamin Eberlei
530c01b5e3
[DDC-3120] Fix bug with unserialize bc break in PHP 5.4.29 and PHP 5.5.13
2014-06-03 17:36:31 +02:00
Geoffrey Wagner
6ee20204a5
Fix some code standard things
2014-02-08 16:01:41 +01:00
Geoffrey Wagner
d9b0c87ded
Fix some code standard things
2014-02-08 16:01:41 +01:00
Geoffrey Wagner
8594e5c4da
Add a test
...
addLifecycleCallback now only allows a callback once so we do not hook them twice
2014-02-08 16:01:41 +01:00
Geoffrey Wagner
5f821f3b98
Fix Lifecycle Callbacks
...
Remove a bit of code that breaks lifecycle callbacks of parent MappedSuperclasses
2014-02-08 16:01:41 +01:00
Benjamin Eberlei
488a4dc78a
[DDC-2700] Add test and fix CS.
2014-01-02 23:50:37 +01:00
Alex Pogodin
1364b6acc6
Identifier can be empty for MappedSuperclasses
...
When MappedSuperclass is inspected without identifier column been assigned, always return false. Solves "Undefined offset" notice.
2014-01-02 23:50:37 +01:00
Eduardo
7c8350094e
Options not respected for ID Fields in XML Mapping Driver
...
Same bug of the YAML driver, see: http://www.doctrine-project.org/jira/browse/DDC-2661
2014-01-02 23:34:17 +01:00
Benjamin Eberlei
0f0d8abd67
[DDC-2608][DDC-2662] Fix SequenceGenerator requiring "sequenceName" and now throw exception. Fix a bug in quoting the sequenceName.
2013-09-08 16:00:14 +02:00
Benjamin Eberlei
de3b237292
[DDC-2661] Fix bug in YamlDriver not passing options from id to mapField()
2013-09-08 10:37:42 +02:00
Fabio B. Silva
a165f63c8c
ANSI compliant quote strategy
2013-06-21 16:05:59 -04:00
Michaël Perrin
37d7df6ac4
Fix phpDoc syntax in ClassMetadataInfo.php
2013-06-14 11:00:17 +03:00
Guilherme Blanco
3d86c82a7f
DDC-2476 Better approach for reverse engineer. Some refactoring done to driver.
2013-06-12 02:00:36 -04:00
Fabio B. Silva
710d0d1109
Fix DDC-1995
2013-06-07 17:24:05 -04:00
Benjamin Eberlei
20b5ab26e7
Merge pull request #669 from hason/many_to_many
...
Fixed generating column names for self referencing entity.
2013-05-25 22:16:48 -07:00
Fabio B. Silva
f92214997f
[DDC-2435] Fix column name with numbers and non alphanumeric characters.
2013-05-17 13:02:46 -03:00
Fabio B. Silva
4d6cef1ff6
[DDC-2451] Fix entity listeners serialization
2013-05-17 11:42:11 -03:00
Martin Hasoň
bef5b585cb
Fixed generating join column names for self referencing entity.
2013-05-17 16:28:45 +02:00
Benjamin Eberlei
7220c3c125
[DDC-2387] Fix DatabaseDriver not working with combinations of composite/association keys.
2013-05-09 12:10:37 +02:00
Benjamin Eberlei
6d02c7e1a5
[DDC-2136] Fix exporting to YAML and XML with assocation keys.
2013-05-01 23:10:13 +02:00
Fabio B. Silva
7c2da2d5b8
Fix DDC-2415
2013-04-26 16:11:04 -03:00
Pascal Borreli
30b050b44c
Fixed typos
2013-04-06 14:31:27 +00:00
Marco Pivetta
7afe5af73a
Fix for DDC-2359
2013-03-24 19:42:50 +01:00
Benjamin Eberlei
559303430a
[DDC-1666] Fix bug where orphan removal on one-to-one associations lead to unique constraint errors when replacing an entity with a new one.
2013-03-14 23:41:31 +01:00
Benjamin Eberlei
d0419782bd
[DDC-2300] Fix version xml mapping and serialization of ClassMetadata.
2013-03-14 23:20:23 +01:00
Pascal Borreli
87e06993d6
Fixed typo
2013-03-11 00:31:50 +00:00
Pascal Borreli
a2cd0f5804
Fixed typos
2013-03-11 00:08:58 +00:00
Marco Pivetta
8272ffd23f
Proxy generation as of doctrine/common#168 - DCOM-96
2013-02-14 09:57:12 +01:00
Benjamin Morel
cba1c8295c
Fixed wrong return types in documentation.
2013-02-12 11:49:44 +00:00
Fabio B. Silva
7177306536
remove extra comma
2013-01-29 12:14:53 -02:00
Fabio B. Silva
ec2d5af2c7
added missing file
2013-01-29 12:14:53 -02:00
Fabio B. Silva
e6d9d1de47
support naming convention for listeners without mapping.
2013-01-29 12:14:53 -02:00
Fabio B. Silva
e9c89cafb9
Fix DocBlock
2013-01-29 12:14:53 -02:00
Fabio B. Silva
6d7b3863b5
Use bitmask of subscribed event systems.
2013-01-29 12:14:53 -02:00
Fabio B. Silva
0d0fc320b4
Fix DocBlock
2013-01-29 12:14:53 -02:00
Fabio B. Silva
0d0f91a807
move listeners invocation from ClassMetadataInfo to ListenerInvoker
2013-01-29 12:14:53 -02:00
Fabio B. Silva
c60e3e4ba4
remove @LifecycleCallback
2013-01-29 12:14:52 -02:00
Fabio B. Silva
ffc8d032c7
Fix typo
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
6b7e588da5
fix CS
2013-01-29 12:14:52 -02:00
Fabio B. Silva
4be25cb330
small refactoring
2013-01-29 12:14:52 -02:00
Fabio B. Silva
8495eca1a4
rename test
2013-01-29 12:14:52 -02:00
Fabio B. Silva
a01d6583d3
implements a entity listener resolver
2013-01-29 12:14:52 -02:00
Fabio B. Silva
27745bb87b
Fix some CS
2013-01-29 12:14:52 -02:00
Fabio B. Silva
256cecbefa
evaluate as lifecycle callback if the listener class is not given.
2013-01-29 12:14:52 -02:00
Fabio B. Silva
fd6f592430
support @LifecycleCallback in @EntityListeners
2013-01-29 12:14:52 -02:00
Fabio B. Silva
f0b04375de
yaml driver
2013-01-29 12:14:52 -02:00