Guillaume Robin
1661d96b92
Documentation : fix table prefix with STI
...
If an Entity use STI, it gets its table name from the parent class. In this case, we need to check that the class is the root class of the hierarchy when adding prefix, otherwise children class are prefixed twice.
2015-02-16 22:11:30 +01:00
Marco Pivetta
a13143b1ac
Merge branch 'feature/#1229-to-one-association-builder'
...
Close #1229
2015-02-16 02:06:32 +00:00
Marco Pivetta
1f67218dc5
#1229 - code style fixes (alignment/spacing)
2015-02-16 02:06:22 +00:00
Guido Contreras Woda
baeab5d4f4
More consistent test naming
2015-02-16 02:02:29 +00:00
Guido Contreras Woda
51881fed94
Added tests and validation on joinColumns being set before checking if its a composite key.
2015-02-16 02:02:29 +00:00
Guido Contreras Woda
cd728344e9
Allow an association to be set as primary key through the builder
2015-02-16 02:02:29 +00:00
Marco Pivetta
b5238966d1
Merge branch 'hotfix/#1295-fix-join-when-re-creating-query-builder-from-parts'
...
Close #1295
2015-02-16 01:23:54 +00:00
Dries De Peuter
4a6afb46e2
Fix join when recreation of query from parts.
2015-02-16 01:23:27 +00:00
Marco Pivetta
f90897465c
Merge branch 'hotfix/#1113-composite-pk-improved-support'
...
Close #1113
2015-02-16 01:17:48 +00:00
Marco Pivetta
2a99d5a19b
#1113 - minor CS fixes (spacing/alignment)
2015-02-16 01:02:56 +00:00
Asmir Mustafic
8eea7c86f7
Resolve association entries on multi get cache
2015-02-16 00:53:48 +00:00
Asmir Mustafic
cb52782e5e
Default Version Value identifier is always an array
2015-02-16 00:53:47 +00:00
Asmir Mustafic
c9e66e464d
Changed getSelectConditionStatementColumnSQL return docblock
2015-02-16 00:53:47 +00:00
Asmir Mustafic
1630ec1ebd
Fixed owing-inverse side search by criteria
2015-02-16 00:53:47 +00:00
Asmir Mustafic
4d531d8855
Right type detection on to-many relations
2015-02-16 00:53:47 +00:00
Asmir Mustafic
4323d9ce4c
Removed unused methods
2015-02-16 00:53:47 +00:00
Asmir Mustafic
7948b0c160
Identity map check
2015-02-16 00:53:47 +00:00
Asmir Mustafic
5838115582
Fixed type checking on to-many relations
2015-02-16 00:53:47 +00:00
Asmir Mustafic
2e890362c5
Tested second level cache with composite primary keys
2015-02-16 00:53:46 +00:00
Asmir Mustafic
51b34919ba
Second level cache check with composite primary keys
2015-02-16 00:53:46 +00:00
Asmir Mustafic
7222991b13
Tested composite primary key support
2015-02-16 00:53:46 +00:00
Asmir Mustafic
5e29bbd41f
Improved composite primary key support
2015-02-16 00:53:46 +00:00
Asmir Mustafic
2eb7dedf4f
Refactored IdentifierFlattener
2015-02-16 00:53:46 +00:00
Marco Pivetta
081ad0efbe
Merge pull request #1297 from eugene-dounar/docs-embeddable-mapping
...
[DDC-3480] Docs: Embeddable supported mappings
2015-02-14 23:20:09 +01:00
Marco Pivetta
eb90cf0c3b
Merge pull request #1298 from eugene-dounar/docs-clean-up-toc
...
Docs: Remove empty pages from TOC
2015-02-14 23:18:48 +01:00
Guilherme Blanco
4c68a38bd6
Merge pull request #1294 from weaverryan/target-platform-when-needed
...
Avoid Connection error when calling ClassMetadataFactor::getAllMetadata()
2015-02-04 16:42:55 -05:00
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
Steve Müller
a0f3b75ec0
Merge pull request #1299 from javiereguiluz/patch-5
...
Fixed missing quote in one DQL example
2015-02-04 11:40:57 +01:00
Javier Eguiluz
aa0f18def3
Fixed missing quote in one DQL example
2015-02-04 11:12:15 +01:00
Eugene Dounar
f996f6583a
Remove empty pages from TOC
...
Remove Installation page from TOC as it was moved to "Installation and
Configuration"
2015-02-04 00:44:57 +03:00
Eugene Dounar
cd7f91910b
Docs: Embeddable supported mappings
...
Mention that only basic mapping is supported by embeddables
2015-02-04 00:17:13 +03:00
Marco Pivetta
78d3f51140
Merge pull request #1296 from joenivl/patch-1
...
Flip key value in $namespaces array
2015-02-03 14:48:44 +00:00
Jeroen van Leeuwen
f9cf2b6a95
Flip key value in $namespaces array
...
Key value should be other way around.
2015-02-03 14:54:21 +01:00
Guilherme Blanco
64ef89ce4c
Merge pull request #1292 from goetas/private-method-mark
...
Mark getSelectConditionStatementColumnSQL method as private
2015-01-28 22:11:49 -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
Asmir Mustafic
fb5cd928ee
Mark getSelectConditionStatementColumnSQL method as private
2015-01-28 23:55:20 +01:00
Marco Pivetta
17a23ea825
Merge pull request #1222 from guiwoda/embeddables-in-metadata-builder
...
Embeddables in metadata builder
2015-01-28 22:25:10 +00:00
Marco Pivetta
3ed73b4a60
Merge pull request #1288 from Ocramius/hotfix/#1169-extra-lazy-one-to-many-is-noop-when-not-doing-orphan-removal
...
Hotfix - #1169 - extra lazy one to many must be no-op when not doing orphan removal
2015-01-28 20:27:22 +00:00
Marco Pivetta
e76b20b109
#1169 DDC-3343 - removing note about query count assertion
2015-01-28 20:01:57 +00:00
Marco Pivetta
ffaffa0b8a
Merge pull request #1290 from phansys/doc-slc
...
[Doc] [Reference] [Second Level Cache]
2015-01-27 16:37:22 +00:00
Javier Spagnoletti
c6158ae3f4
Updated reference for Second Level Cache (fixed some typos and docblocks).
2015-01-27 13:24:35 -03:00
Marco Pivetta
969788d928
Merge pull request #1289 from deeky666/improve-testsuite
...
Improve test suite
2015-01-27 12:24:36 +00:00
Steve Müller
3b61d2d0fe
initialize database schema only once and avoid unnecessary connections
2015-01-27 12:28:31 +01:00
Steve Müller
75e41eefb5
fix indentation
2015-01-27 10:02:57 +01:00
Steve Müller
5795d53ca7
remove temporary database dependencies from Travis build
2015-01-27 09:44:06 +01:00
Steve Müller
2fbc483fe3
apply current implementation from DBAL @ dcdf744e3fdd2ba99239ee41009e08a4b6450eff
2015-01-27 09:40:45 +01:00
Marco Pivetta
c7a6352b08
#1169 DDC-3343 - eagerly evicting cache if a persister passes a delete operation down to the DB
2015-01-27 09:04:28 +01:00
Marco Pivetta
a9671fdc2e
#1169 DDC-3343 - eagerly evicting cache if a persister passes a delete operation down to the DB
2015-01-27 09:04:00 +01:00
Marco Pivetta
c4019d96b9
#1169 DDC-3343 - when a deletion fails for some reason, related cache entries should be evicted to avoid collisions with DB state
2015-01-27 09:03:36 +01:00