1
0
mirror of synced 2025-02-02 21:41:45 +03:00

493 Commits

Author SHA1 Message Date
Luís Cobucci
e43b9e9e3a
Use isIdGeneratorIdentity() to add the ID on query
It's quite handy when creating CUSTOM id generators that should also
rely on AUTO_INCREMENT stuff (one can just extend the `ClassMedatadaFactory`
and create a different instance of `ClassMetadata` that overrides that
method).
2016-09-09 07:52:44 +00:00
Javier Spagnoletti
a90035e81a Expose EntityPersister::count() through EntityRepository::count() 2016-09-08 00:32:15 +02:00
Mikhail Shamin
bf322b903d Optimize imports. Remove full qualified class names 2016-05-11 01:55:12 +07:00
Jeremy Giberson
dd3f67d862 updated manytomany so it maps field names to column names in criteria ordering 2016-02-11 13:39:31 -07:00
Jeremy Giberson
ae785757a1 Merge branch 'fix-many-many-criteria' of github.com:petitchevalroux/doctrine2 into many-to-many-criteria-fixes
Conflicts:
	lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.php
2016-02-10 20:04:48 -07:00
Jeremy Giberson
0adeade045 merged git@github.com:SammyK/doctrine2.git:many-to-many-order-by-fix 2016-02-10 19:52:03 -07:00
Jeremy Giberson
f0accca99d Merge branch 'DDC-3719-fix' of github.com:jeanCarloMachado/doctrine2 into many-to-many-criteria-fixes 2016-02-10 19:40:45 -07:00
Patrick Poulain
cfeda903e3 Fix many-to-many matching ignoring offset/limit 2016-02-05 11:14:47 +01:00
Jeroen Thora
6dcb97a20e Fixed many small phpcs issues 2015-12-11 20:30:41 +01:00
Guilherme Blanco
84eb175dbf Merge pull request #1436 from dadamssg/DDC-3785
allow ManyToManyPersister to handle custom identification types
2015-11-15 22:24:01 -05:00
Guilherme Blanco
58992ad523 Fixed support for inverse side second level cache 2015-11-12 05:00:08 +00:00
Guilherme Blanco
843966ac50 General fixes across CS, type resolving, test fixes, etc 2015-11-07 03:55:05 +00:00
Marco Pivetta
f097478437 #1354 - DDC-3644 - short array syntax 2015-11-05 00:13:19 -05:00
Marco Pivetta
a7ded16204 #1354 - DDC-3644 - s/protected/private 2015-11-05 00:11:43 -05:00
Guilherme Blanco
1587aac4ff Added support for OneToMany with orphanRemoval. Replacing entire collection now deletes the replaced collection (scheduled for deletion). No event handling is done as it happens at DBAL level. 2015-11-05 00:08:44 -05:00
David Adams
6fa20062f3 allow ManyToManyPersister to handle identification types 2015-06-23 17:55:56 +00:00
Wojciech Zylinski
af2295b73a Switch to relationToTargetKeyColumns when matching non-owning side with Criteria. Fixes DDC-3719. 2015-05-03 18:39:51 +01:00
Tomáš Votruba
b3b0f6bd5b PersisterException: missing license added 2015-04-17 12:46:52 +02:00
Josef Kříž
e57be9da5e Fix: generated IDs are converted to integer 2015-03-23 17:51:04 +01:00
Jeroen Thora
a409e7591d Changed some wrong usage of the @internal phpdoc 2015-03-15 16:53:34 +01:00
vvh-empora
6afcac84d0 embeddedClasses support...
...for JoinedSubclassPersister.php
2015-03-03 11:40:19 +01:00
Guilherme Blanco
4680a7b861 Fixed bug where embedded reflection fields were never exposed to userland. 2015-02-20 14:10:28 -05:00
Marco Pivetta
2a99d5a19b #1113 - minor CS fixes (spacing/alignment) 2015-02-16 01:02:56 +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
5838115582 Fixed type checking on to-many relations 2015-02-16 00:53:47 +00:00
Asmir Mustafic
5e29bbd41f Improved composite primary key support 2015-02-16 00:53:46 +00:00
Asmir Mustafic
fb5cd928ee Mark getSelectConditionStatementColumnSQL method as private 2015-01-28 23:55:20 +01:00
Marco Pivetta
f32766c00d #1169 DDC-3343 - when using one-to-many extra-lazy with orphan-removal, referenced entities should be deleted directly 2015-01-27 07:46:31 +01:00
Marco Pivetta
9eaac13615 #1169 DDC-3343 - correcting one-to-many persister - association should not be updated directly if no orphan removal is involved 2015-01-27 06:27:37 +01:00
Marco Pivetta
146354d835 Merge pull request #1280 from Ocramius/hotfix/#1277-find-one-with-eager-loads-is-failing
[DDC-3346] #1277 find one with eager loads is failing
2015-01-25 06:00:47 +01:00
Marco Pivetta
d4b278c809 #1277 DDC-3346 - removing leftover comments 2015-01-25 05:03:19 +01:00
Marco Pivetta
97ea6a7d85 #1277 DDC-3346 - removing array-based persister context handling (better to just use private props) 2015-01-24 14:39:47 +01:00
Marco Pivetta
1672448993 #1277 DDC-3346 DDC-3531 - renaming persister context switch for clarity 2015-01-24 14:39:45 +01:00
Marco Pivetta
a37fa97be3 #1277 DDC-3346 DDC-3531 - skipping joining of associations when limiting and fetch-joining to-many eager associations 2015-01-24 14:39:45 +01:00
Marco Pivetta
67f60f2286 #1277 DDC-3346 DDC-3531 - switching persister context at runtime, depending on choices 2015-01-24 14:39:44 +01:00
Marco Pivetta
23a0d9a1fb #1277 DDC-3346 DDC-3531 - switch persister context at runtime 2015-01-24 14:39:44 +01:00
Marco Pivetta
8b9171c8ad #1277 DDC-3346 DDC-3531 - caching the currently in use persister context 2015-01-24 14:39:44 +01:00
Marco Pivetta
ebdfab8f2c #1277 DDC-3346 DDC-3531 - moved sqlTableAliases into the newly created CachedPersisterContext 2015-01-24 14:39:44 +01:00
Marco Pivetta
2a7f149029 #1277 DDC-3346 DDC-3531 - moved sqlAliasCounter into the newly created CachedPersisterContext 2015-01-24 14:39:44 +01:00
Marco Pivetta
b9f698c98c #1277 DDC-3346 DDC-3531 - moved selectJoinSql into the newly created CachedPersisterContext 2015-01-24 14:39:43 +01:00
Marco Pivetta
55930a3402 #1277 DDC-3346 DDC-3531 - moved selectColumnListSql into the newly created CachedPersisterContext 2015-01-24 14:39:43 +01:00
Marco Pivetta
4c62d3bfda #1277 DDC-3346 DDC-3531 - moved resultsetmapping into the newly created CachedPersisterContext 2015-01-24 14:39:43 +01:00
Marco Pivetta
6a2b7c2a8e #1169 DDC-3343 - correcting query count assertions on extra-lazy specific tests (some DELETE operations became UPDATE operations) 2015-01-24 12:20:33 +01:00
Marco Pivetta
15397bbe40 #1169 DDC-3343 - refactoring test to use pre-existing test models 2015-01-24 11:54:03 +01:00
Marco Pivetta
f184956d3a #1169 DDC-3343 - one-to-many extra-lazy should not delete associated values when they are removed, but just update the owning side 2015-01-24 11:40:48 +01:00
Anderson Müller
d48093886d Fix error undefined index "targetEntity" 2015-01-18 15:54:43 +01:00
Marco Pivetta
f13b085582 Using PersisterHelper instead of the unreliable ClassMetadataInfo#getTypeOfColumn() 2015-01-17 08:14:04 +01:00