Luís Cobucci
d47c1f3e9b
Fix basic entity persister type resolver
...
Which was using the wrong way to fetch the field type and using the
association type instead of the column type.
2018-02-26 14:39:06 +01:00
Jan Langer
e68717b725
Fix updating entities with quoted identifier association
2018-02-25 20:10:18 +01:00
Marco Pivetta
3dd7eb5888
#6759 removing outdated comment as per @alcaeus' review
...
Ref: https://github.com/doctrine/doctrine2/pull/6760#discussion_r143347881
2017-10-08 10:57:33 +02:00
Marco Pivetta
dd12ba88ee
#6759 avoiding reuse of the $identifier
variable when constructing an identifier from the owning side value
...
Fixes #6759
2017-10-07 12:54:36 +02:00
Dariusz Ruminski
c7d6d62393
Use newer PHP syntax
2017-09-06 01:32:49 +02:00
Luís Cobucci
eba8fec1fb
Move identifier types extraction to a method
2017-07-22 22:39:47 +02:00
Alessandro Frangioni
60a2628f9d
Iteration simplified
2017-07-22 22:26:31 +02:00
Alessandro Frangioni
4ef0a238bf
Inferring id's field types
2017-07-22 22:26:31 +02:00
Alessandro Frangioni
af3591fbca
Fixes #5804
2017-07-22 22:26:31 +02:00
Artem Stepin
43009682a4
minor code work:
...
- method calls with incorrect case
- removed unused imports
- typos and some other minor code smells
- documentation update (wrong return types etc. )
2017-06-08 22:04:07 +02:00
Marco Pivetta
2c1ebc4ef1
Merge pull request #6416 from lcobucci/fix-quote-on-inheritance
...
Fix quoting when using inheritance as well
2017-05-02 09:42:03 +02:00
Marcin Szulc
a360da5a7e
Fix lazy loading of 1-to-1 relationship with custom id object
...
Fixing case when lazy loading of entity in one-to-one relationship on the side without foreign key
did not return eht entity because of custom type not being detected and properly formatted before
applying to database query.
Closes https://github.com/doctrine/doctrine2/issues/5887
2017-04-30 19:53:28 +02:00
Luís Cobucci
0aef63b350
Fix quoting also when using inheritance
2017-04-30 19:36:41 +02:00
lemartin
7c6c5d87c8
Fix quoting issues related to ticket #6402
...
Apply quoting strategy to foreign key columns of one-to-one relation so
that correct select statements are generated. And use unquoted column
names in result mapping instead of quoted ones, as consumers (namely
IdentifierFlattener) expect unquoted column names.
2017-04-30 13:51:49 +02:00
Vytautas Stankus
a557c97a93
Add support for STARTS_WITH and ENDS_WITH comparison operators
2017-04-30 13:19:51 +02:00
Jefersson Nathan
eaeecc3857
Remove unused arguments
2017-01-05 18:21:49 -03:00
Luís Cobucci
234989d069
Use short-array syntax on "lib" directory
2016-12-08 00:31:12 +01:00
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
Jeroen Thora
6dcb97a20e
Fixed many small phpcs issues
2015-12-11 20:30:41 +01:00
Guilherme Blanco
843966ac50
General fixes across CS, type resolving, test fixes, etc
2015-11-07 03:55:05 +00:00
Josef Kříž
e57be9da5e
Fix: generated IDs are converted to integer
2015-03-23 17:51:04 +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
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
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
Marco Pivetta
f1170c84a4
#1086 - Passing type information when building meta-mappings for JTI and STI inheritances
2015-01-17 08:09:55 +01:00
Marco Pivetta
131a39bad4
#1178 - s/getValue/getIdentifierValues
2015-01-17 07:59:03 +01:00
Marco Pivetta
a39b6869ca
#1178 - mapping between criteria parameters and types when fetching on one-to-many with additional criterions
2015-01-17 07:59:02 +01:00