Marco Pivetta
733102b4a1
DDC-3065 - applying hotfix that allows NULL
in IN()
criteria
2014-04-03 17:36:56 +02:00
Thomas Lomas
7d9630786b
Update EntityGenerator comment
...
fieldVisibility was referred to as a boolean, where it is actually a string.
2014-03-29 01:49:12 +00:00
Benjamin Eberlei
927d69b61a
Merge pull request #957 from thealjey/master
...
makes doctrine less dependent upon the symfony yaml component
2014-03-23 15:41:27 +01:00
Benjamin Eberlei
8addb5ffa8
Merge pull request #960 from drealecs/fixes-EntityManagerInterface
...
allow passing EntityManagerInterface when creating a HelperSet
2014-03-23 15:36:38 +01:00
Benjamin Eberlei
71fc425902
Merge pull request #963 from mdemo/master
...
SQLFilter -- allows to check if a parameter was set
2014-03-23 15:33:14 +01:00
Benjamin Eberlei
a03c8da683
Merge pull request #962 from netiul/master
...
Stop executeDeletions when there is nothing to to delete anymore
2014-03-23 15:32:28 +01:00
Benjamin Eberlei
2aea3036b6
[DDC-3018] Fix string literals in new operator.
2014-03-23 15:16:09 +01:00
Benjamin Eberlei
d473824279
[DDC-2996] Fix bug in UnitOfWork#recomputeSingleEntityChangeSet
...
When calling UnitOfWork#recomputeSingleEntityChangeSet on an entity
that didn't have a changeset before, the computation was ignored.
This method however is suggested to be used in "onFlush" and "preFlush"
events in the documentation.
Also fix a bug where recomputeSingleEntityChangeSet was used
before calculating a real changeset for an object.
2014-03-23 13:16:33 +01:00
Benjamin Eberlei
e415da7f47
Merge branch 'DDC-3033'
2014-03-23 12:38:06 +01:00
Benjamin Eberlei
396337bd0d
[DDC-3033] Fix bug in UnitOfWork#recomputeSingleEntityChangeSet.
...
The fix for DDC-2624 had a side effect on recomputation of
changesets in preUpdate events. The method wasn't adjusted
to the changes in its sister method computeChangeSet() and
had wrong assumptions about the computation.
Especially:
1. Collections have to be skipped
2. Comparison was changed to strict equality only.
2014-03-23 12:35:54 +01:00
Benjamin Eberlei
fb2d2bce45
Merge pull request #984 from holtkamp/patch-1
...
Use boolean values for 'unique' attribute
2014-03-23 10:16:04 +01:00
Benjamin Eberlei
c8836a008d
[DDC-3045] Check that EntityRepository APIs prevent SQL injection through field names. Improve EntityManager#find() error handling when invalid identifier fields are passed.
2014-03-23 09:58:31 +01:00
Menno Holtkamp
ef4e73f987
Use boolean values for 'unique' attribute
...
As defined in: https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd#L294
Same as 'nullable' attribute.
It was being exported as a "1" for TRUE and "0" for false
2014-03-20 11:08:29 +01:00
Menno Holtkamp
262e465e39
Processed code-review feedback
2014-03-20 09:02:39 +01:00
Menno Holtkamp
56e879b7aa
Removed double linebreaks
2014-03-19 13:03:26 +01:00
Menno Holtkamp
400f420925
Added MEMBER OF and INSTANCE OF helpers to ExpressionBuilder
2014-03-19 13:00:45 +01:00
Guilherme Blanco
383604d4b8
Merge pull request #978 from AntonStoeckl/embedded-empty-prefix
...
[DDC-2987] Enable empty prefixes for inlined embeddable
2014-03-16 11:35:25 -05:00
Guilherme Blanco
44c1dae1b9
Merge pull request #885 from bakura10/criteria-many-to-many
...
Add support for ManyToMany Criteria
2014-03-16 11:33:10 -05:00
Anton Stoeckl
83ef47c8d0
This fixes ticket DDC-3028
...
Enables columnPrefix to be "false" so no prefix is added.
Changed the structure a bit (to if/else) to be more readable with the additional condition.
2014-03-14 12:34:22 +01:00
Anton Stoeckl
cd2043915c
columnPrefix must support string and boolean, so changing to mixed
2014-03-14 12:29:01 +01:00
Anton Stöckl
fa79de6ea4
Enable empty prefixes for inlined embeddable
...
This fixes http://www.doctrine-project.org/jira/browse/DDC-2987
This makes it possible to map a field from an embeddable to a database field with the same name, without any prefix added.
Example:
- an embeddable object "Id" with a property "id"
- per default this would map inline to id_id
- supplying null or '' as columnPrefix does not work due to the ! empty() check
- with my little change, if columnPrefix : false is supplied in the mapping config this will now map to a db column "id"
To build Ids as ValueObjects is a very common approach in DDD, so ihmo this is a must have.
2014-03-13 16:47:22 +01:00
Miha Vrhovnik
d888d7d1c0
Fix wrong annotation
...
Without above fix I'm getting
"[Semantical Error] The annotation "@array" in method Doctrine\ORM\Mapping\ClassMetadataInfo::mapEmbedded() was never imported. Did you maybe forget to add a "use" statement for this annotation?"
2014-03-11 14:44:42 +01:00
Fabio B. Silva
e9ec0a24da
[SLC] resolve association cache entry
2014-03-06 20:44:59 -05:00
Fabio B. Silva
cbdd8bc041
[SLC] Fix query association proxy
2014-03-05 04:10:07 -05:00
fabios
6e64cc101a
[SLC] Add query builder options
2014-03-03 15:28:35 -05:00
Benjamin Eberlei
a522aa0a81
Merge pull request #965 from FabioBatSilva/slc-criteria
...
[SLC] Add support for criteria
2014-03-01 12:47:57 +01:00
Fabio B. Silva
8c2aef3f14
[DDC-2943] Disable slc for pagination queries
2014-03-01 01:15:09 -05:00
Fabio B. Silva
f4c63f8238
[SLC] Support criteria
2014-03-01 00:59:34 -05:00
Miro Demovic
1921c2f74a
Allow if parameter exists in SQLFilter
2014-02-26 08:55:47 +01:00
Zacharias Luiten
8a168bb2ce
stop executing executeDeletions when there is nothing to to delete anymore
2014-02-25 16:02:02 +01:00
Alexandru Patranescu
1fe6dbc1f2
allow passing EntityManagerInterface when creating a HelperSet
2014-02-23 20:01:14 +02:00
Eugene Kuzmenko
c06201303d
makes doctrine less dependent upon the symfony yamp component
2014-02-20 09:28:44 +00:00
Marco Pivetta
5a2497d482
Merge pull request #935 from da-eto-ya/remove_public_validation
...
Remove incorrect (outdated) validation for public fields in SchemaValidator
2014-02-19 21:21:59 +01:00
Michaël Gallego
b550d44cb9
CS fix
2014-02-18 10:26:26 +01:00
Michaël Gallego
a45ecb5733
Fix bug with hydrators
2014-02-18 10:26:25 +01:00
Michaël Gallego
6cbd643d4b
Add test
2014-02-18 10:26:25 +01:00
Michaël Gallego
f03f991a25
Functional test
2014-02-18 10:26:25 +01:00
Michaël Gallego
0d5de64c0f
Fix CS
2014-02-18 10:26:25 +01:00
Michaël Gallego
e5ba28676d
fallback to persister count
2014-02-18 10:26:25 +01:00
Michaël Gallego
fbbe922cb6
Fix tests
2014-02-18 10:26:25 +01:00
Michaël Gallego
c69b7562ab
Remove useless exception
2014-02-18 10:26:25 +01:00
Michaël Gallego
bb1f71f1f9
Fix docblock
2014-02-18 10:26:25 +01:00
Michaël Gallego
be39afa2f4
Add method to interface
2014-02-18 10:26:24 +01:00
Michaël Gallego
9385a600cf
Fix wrong logic
2014-02-18 10:26:24 +01:00
Michaël Gallego
738cc250f8
Revert docblock
2014-02-18 10:26:24 +01:00
Michaël Gallego
07654ddd3f
Revert tab changes
2014-02-18 10:26:24 +01:00
Michaël Gallego
160b07d1e3
Rebase to master
2014-02-18 10:26:24 +01:00
Guilherme Blanco
0dbd742588
Merge pull request #886 from Strate/bugfix/join-with-condition-placement-fix
...
[DDC-1256] Fix applying ON/WITH conditions to first join in Class Table Inheritance
2014-02-17 12:12:05 -05:00
Asmir Mustafic
a5fbb20fbb
Can cache many to many empty relations
2014-02-11 15:08:49 +01:00
Asmir Mustafic
1c94c16234
Can cache empty collections
...
I should be able to cache an "empty" collection.
I have a some objects, where 90% of these have on-to-many relations with zero associated elements.
This causes doctrine to run a query each time, instead of cache it as empty relation.
2014-02-11 14:59:31 +01:00