Giorgio Premi
a665cb0229
DefaultRepositoryFactory: single repository for aliased entities
2014-08-18 14:52:01 +02:00
Steve Müller
0768916a06
fix handling infinite nesting of embeddables
2014-08-12 07:56:39 +02:00
Steve Müller
bca9d31531
add support for nesting embeddables
2014-08-11 16:53:18 +02:00
Rhodri Pugh
ad10a18071
added more informative error messages when invalid parameter count
2014-07-15 13:17:22 +01:00
Marco Pivetta
b80149344d
Merge pull request #1073 from kamazee/add_passing_type_to_rsm_in_sql_walker
...
Add missing type mapping
2014-07-14 10:51:13 +02:00
Alexander Kurilo
38fcc66c16
Add missing type mapping
...
Fixes DDC-3192
Refs DDC-2494
This is essentially a fix from DDC-2494 applied to SQLWalker.
The issue: type was not converted to PHP value when the result is fetched by
executing DQL query rather than using entity manager's findX(). Similar issue
for BasicEntityPersister (which is used when em's findX is executed) was fixed
in DDC-2494, but SQLWalker made the issue valid for any custom query.
2014-07-14 11:22:08 +03:00
Marco Pivetta
a8035f25a2
Merge pull request #1074 from zimmermanj42/DDC-3160
...
[DDC-3160] Alternate fix for DDC-2996 bug
2014-07-06 16:07:43 +02:00
Justin Zimmerman
6a4867512e
Fix test issues.
2014-07-04 11:15:57 -04:00
Guilherme Blanco
38187a31d6
Merge pull request #1032 from bakura10/optimized-contains
...
Add support for optimized contains in LazyCriteria
2014-06-21 08:56:47 -04:00
Ulf
7aa1c0a907
Create DDC3170Test.php
...
Added test for [DDC-3170] (http://www.doctrine-project.org/jira/browse/DDC-3170 )
2014-06-17 14:45:59 +02:00
Andreas Flack
a5cf6417b3
Add failing test for DDC-3160
2014-06-12 17:28:13 +02:00
Michaël Gallego
a04113f410
Add support for optimized contains
2014-05-17 12:54:25 +02:00
Guilherme Blanco
47ca10076b
Merge pull request #991 from mnapoli/custom-functions-callback
...
Ability to define custom functions with callback instead of class name
2014-05-16 00:27:30 -04:00
Michaël Gallego
92a2b01c77
Fix tests by forcing collection initialization
2014-05-15 18:37:41 +02:00
Michaël Gallego
0a6c2027f5
Update tests
2014-05-15 18:22:57 +02:00
Michaël Gallego
45e9d6ed5a
Fix test on some RDBMS
2014-05-15 18:22:57 +02:00
Michaël Gallego
11de4c2e72
Only create lazy collection for EXTRA_LAZY
2014-05-15 18:22:57 +02:00
Michaël Gallego
50832fd3bc
Add tests for PersistentCollection
2014-05-15 18:22:57 +02:00
Michaël Gallego
876643e83e
Add test for Entity Repository
2014-05-15 18:22:57 +02:00
Michaël Gallego
ac15b184b6
Fix tests for inheritance support
2014-05-15 18:22:56 +02:00
Marco Pivetta
65e55a0c49
DDC-3123 - using assertAttributeEmpty
(with message) instead of explicit reflection
2014-05-15 17:37:41 +02:00
Matthieu Napoli
c7eb42b04f
Ability to define custom functions with callback + tests
2014-05-15 12:06:21 +02:00
Guilherme Blanco
5c828fc6c8
Merge pull request #1023 from coma/DDC-3027
...
[DDC-3027] Avoid duplicated mapping using Embedded in MappedSuperclass
2014-05-14 22:37:24 -04:00
Marco Pivetta
9cdcba3fbc
DDC-3123 - verifying that the UoW is not clearing extra inserts
2014-05-15 00:18:22 +02:00
Eduardo García Sanz
8a3def097f
[DDC-3027] Avoid duplicated mapping using Embedded in MappedSuperclass
2014-04-30 11:46:54 +02:00
Marco Pivetta
7a305475e3
The proxy factory always expects non-null identifier values
2014-04-29 13:25:17 +02:00
Marco Pivetta
677cea4748
DDC-3103 - minor CS fixes/adjustments
2014-04-29 13:12:17 +02:00
Marco Jantke
cf84183c18
created test case to reproduce error
2014-04-29 09:30:10 +02:00
Guilherme Blanco
29de3e00ff
Added support for NEW operator when using ArrayHydration if user desires to benefit from this funcionality.
2014-04-23 05:10:23 +00:00
Guilherme Blanco
4185a9ce4b
Merge pull request #999 from doctrine/hotfix/DDC-3065-null-value-in-in-criteria-support
...
DDC-3065 null value in in criteria support
2014-04-20 23:30:14 -04:00
Guilherme Blanco
38b6838386
DDC-2575 Fixed issue with associations when parent is not yet loaded, but child is being created and no link happens.
2014-04-18 05:21:27 +00:00
Guilherme Blanco
10a0daf620
DDC-3068 DDC-3069 EntityManager::find accept array of object as id.
2014-04-18 02:03:47 +00:00
Marco Pivetta
e1259098f5
Fixed whitespace around imported classes
2014-04-17 15:37:24 -04:00
Marco Pivetta
9ab6ef723a
Removing too eager cache tests
2014-04-17 15:37:24 -04:00
Marco Pivetta
abb4671bfc
Removing usage of memcache cache in tests (HHVM gets stuck on them on local setups)
2014-04-17 15:37:23 -04:00
Marco Pivetta
e263426cdf
Removing eager assertion on error suppression when generating schema via tools
2014-04-17 15:37:23 -04:00
Guilherme Blanco
54898eca60
Added index by consideration when eagerly loading to-many associations.
2014-04-17 03:53:21 +00:00
Guilherme Blanco
b28fa9a05a
DDC-1632 Optimized query count for one-to-many associations with fetch eager.
2014-04-16 05:36:31 +00:00
Guilherme Blanco
1cd0b26a40
DDC-3068 EntityManager clear() calls now follow cascade detach configuration.
2014-04-16 04:47:57 +00:00
Guilherme Blanco
5ce6dabe9b
Fixes DDC-2984. Made DDC-742 more resilient to recurring failures.
2014-04-16 04:20:18 +00:00
Giorgio Premi
6cb3fa8fb7
Removed all useless occurrence of require_once TestInit.php
2014-04-07 14:43:25 +02:00
Marco Pivetta
f80fceda0e
DDC-3042 - changing SQL generation tests to respect changes in naming strategy
2014-04-04 03:05:48 +02:00
Marco Pivetta
11b3065fd1
Verifying DDC-3042 - duplicate aliases in DQL SQL generation
2014-04-04 03:05:48 +02:00
Marco Pivetta
3680bb7ccc
Stubbing out test for DDC-3042 - DQL aliases cause collisions when selecting from tables with similar properties
2014-04-04 03:05:48 +02:00
Marco Pivetta
eb6498544f
DDC-3065 - splitting tests and checking multiple values support
2014-04-03 17:36:56 +02:00
Marco Pivetta
f54d6157f4
DDC-3065 - hardening test - should support multiple values in IN(), also NULL ones
2014-04-03 17:36:56 +02:00
Marco Pivetta
f2f571e4ab
DDC-3065 - failing test - IN()-alike criteria should support NULL search values
2014-04-03 17:36:56 +02: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
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
Thomas Lallement
6bbc07ddbf
Update DDC3033Test.php
2014-03-18 22:10:15 +01:00
Thomas Lallement
7bf2bcb017
Update DDC3033Test.php
2014-03-18 15:04:48 +01:00
Thomas Lallement
263822fd19
Failing Test (since commit 53a5a48aed
)
...
Hi,
It seems to be a regression since the commit 53a5a48aed
Doctrine\ORM\PersistentCollection can be populated in $changeSet if you set a PreUpdate and PostUpdate event.
Original issue: http://www.doctrine-project.org/jira/browse/DDC-3033
2014-03-18 15:00:43 +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
871dc5d186
Test are for fix of ticket DDC-3028
...
Added 3 tests that check regression for:
- columnPrefix is empty
- columnPrefix is a string
- columnPrefix is false
Added some small entity / embeddable classes to support the test cases.
2014-03-14 12:32:49 +01:00
Anton Stoeckl
cd2043915c
columnPrefix must support string and boolean, so changing to mixed
2014-03-14 12:29:01 +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
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
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
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
Asmir Mustafic
94896ce552
Typo fix on many-to-many assocaition cascade test
2014-02-12 08:18:34 +01:00
Asmir Mustafic
4a6d6e34f8
Test empty collections second level cache
2014-02-11 17:39:16 +01:00
Benjamin Eberlei
53a5a48aed
[DDC-2624] Fix bug when persistent collection is cloned and used in a new entity.
2014-02-09 14:27:42 +01:00
Jan Kramer
43e37d4f2f
Throw exception on embeddables in embeddables.
2014-02-09 10:09:28 +01:00
Benjamin Eberlei
1a08b52ab4
Cleanup test output.
2014-02-08 17:00:21 +01:00
Benjamin Eberlei
50ba19d91b
Merge pull request #937 from goetas/contains-key
...
Extra-lazy for containsKey on collections
2014-02-08 16:28:44 +01:00
Benjamin Eberlei
8a0901c92b
Merge pull request #835 from schmittjoh/ValueObjects
...
Value objects (Based on #634 )
2014-02-08 16:24:47 +01:00
Benjamin Eberlei
8e3f4561c0
Merge pull request #858 from schmittjoh/rsmBuilder
...
lifts an unnecessary restriction on ResultSetMappingBuilder
2014-02-08 16:23:18 +01:00
Benjamin Eberlei
058e024f0e
Merge pull request #902 from gwagner/master
...
Fix Lifecycle Callbacks
2014-02-08 16:01:13 +01:00
Benjamin Eberlei
31a2870c3f
Merge pull request #912 from BenMorel/collection-count
...
Avoid PersistentCollection::isEmpty() to fully load the collection.
2014-02-08 16:00:10 +01:00
Benjamin Eberlei
960fbfc110
Merge pull request #908 from FabioBatSilva/DDC-2862
...
[DDC-2862][SLC] Fix lazy association load
2014-02-08 15:55:20 +01:00
Benjamin Eberlei
b76e95cbb9
Merge pull request #917 from doctrine/hotfix/DDC-2931
...
DDC-2931 - one-to-one self-referencing association broken by DCOM-96
2014-02-08 15:46:07 +01:00
Benjamin Morel
496f9a0176
Avoid PersistentCollection::isEmpty() to fully load the collection on extra lazy fetch.
2014-02-08 13:49:48 +00:00
Asmir Mustafic
5475d616e3
more tests
2014-02-07 14:30:17 +01:00
Asmir Mustafic
724e69146c
typos and removed confusing ternary
2014-02-06 12:44:13 +01:00
Asmir Mustafic
557686aa0a
Entra-lazy for containsKey on collections
2014-02-06 12:27:12 +01:00
Ilya Pleshakov
1f3290faae
Remove incorrect (outdated) validation for public fields in SchemaValidator
2014-02-06 13:02:41 +04:00
Steve Müller
a6c8ab8a5f
make lock mode usage consistent
2014-02-05 15:13:53 +01:00
Marco Pivetta
8c92e0f19f
DDC-2931 - adding test that verifies that fetch-joined entities get refreshed with hints
2014-02-01 01:05:34 +01:00
Fabio B. Silva
7e5a1c6b0d
Fix lazy association load
2014-01-28 12:26:10 -05:00
Marco Pivetta
b815a4b2d3
DDC-2931 - removing old comments
2014-01-24 02:52:30 +01:00
Marco Pivetta
9eafb11a02
DDC-2931 - Detailed explanation
2014-01-24 02:43:14 +01:00
Marco Pivetta
22bcfef523
DDC-2931 - cleaning up code formatting/simplifying test case
2014-01-23 20:19:36 +01:00
root
fabef48ca2
[DDC-2931] testcase to reproduce Jira 2931
2014-01-23 17:31:08 +00:00
Steve Müller
3eced21a01
add missing use statement for SQL Server testsuite to work
2014-01-13 15:57:18 +01:00
Geoffrey Wagner
e9739f8591
Fix some code standard things
2014-01-09 10:48:38 -06:00
Geoffrey Wagner
4772cbfae6
Add a test
...
addLifecycleCallback now only allows a callback once so we do not hook them twice
2014-01-08 20:58:50 -06:00
Johannes Schmitt
7020f4135f
skips DQL UPDATE/DELETE tests with SLC enabled
2014-01-04 18:32:06 +01:00
Johannes Schmitt
87b4155665
adds test for ResultSetMappingBuilder restriction
2014-01-04 18:06:16 +01:00
Johannes Schmitt
4f585a3d63
Merge branch 'master' of github.com:doctrine/doctrine2 into ValueObjects
...
Conflicts:
UPGRADE.md
lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php
2014-01-04 17:52:32 +01:00
Benjamin Eberlei
e91ed74b25
[DDC-2775] cleanup test.
2014-01-02 23:11:35 +01:00
Benjamin Eberlei
17809abd29
Merge pull request #837 from mnapoli/DDC2775
...
DDC-2775 Tests and fix
2014-01-02 14:07:14 -08:00
Benjamin Eberlei
ea84cfbdd1
Merge pull request #845 from flack/avoid-update-on-delete
...
Don't compute changeset for entities that are going to be deleted
2014-01-02 13:59:25 -08:00
Benjamin Eberlei
7a4a46a95c
[GH-855] fix CS
2014-01-02 22:50:36 +01:00