Marco Pivetta
f799986be1
Reverting BC break in AbstractIdGenerator signature
2015-01-16 18:52:58 +01:00
Marco Pivetta
dd8db1acd2
DDC-3427 - s/EntityManager/EntityManagerInterface in relevant tests about identifier generation
2015-01-16 14:22:03 +01:00
Guilherme Blanco
a1d77bdc65
Renamed coll to collection and some small updates to tests.
2015-01-15 03:14:48 +00:00
Marco Pivetta
0106cba602
#881 DDC-2825 - reusing mapping files that already exist in models, where applicable
2015-01-14 19:17:39 +01:00
Marco Pivetta
7b168de236
#881 DDC-2825 - removing unused imports
2015-01-14 19:05:40 +01:00
Marco Pivetta
962f479318
#881 DDC-2825 - refactoring test logic, removing dead private method
2015-01-14 19:04:58 +01:00
Marco Pivetta
80ce601eae
#881 DDC-2825 - refactoring test logic to use data-provider instead of code repetitions
2015-01-14 19:02:44 +01:00
Marco Pivetta
f874189456
#881 DDC-2825 - refactoring tests for clarity/readability and ease of use
2015-01-14 18:56:37 +01:00
Marco Pivetta
9d6890e6ca
#881 DDC-2825 - expectations are the first parameter in an assertion
2015-01-14 18:50:17 +01:00
Marco Pivetta
67788d89b5
#881 DDC-2825 - simplifying/extracting test logic: moved verifying metadata into separate test method
2015-01-14 18:47:17 +01:00
Marco Pivetta
0a91b83e27
#881 DDC-2825 - exploding test case into smaller units
2015-01-14 18:34:58 +01:00
Marco Pivetta
6f85ca3356
#881 DDC-2825 - exploding test case into smaller units
2015-01-14 18:31:11 +01:00
Michaël Perrin
54b3c0548d
Fix persistence exception on a table with a schema on a platform without schema support
2015-01-14 15:48:49 +01:00
Rob Caiger
dd398ce577
- Fixed the basic entity persister so that versioned OneToOne entities can be created
...
- Created an IdentifierFlattener utility class
- Moved the logic for the flatten identifier method into the new utility class
- Replaced calls for private flattenIdentifier to use new utility
- Added appropriate unit tests
2014-10-01 14:01:44 +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
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
Marco Pivetta
65e55a0c49
DDC-3123 - using assertAttributeEmpty
(with message) instead of explicit reflection
2014-05-15 17:37:41 +02:00
Marco Pivetta
9cdcba3fbc
DDC-3123 - verifying that the UoW is not clearing extra inserts
2014-05-15 00:18:22 +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
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
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
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
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
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
Fabio B. Silva
8c2aef3f14
[DDC-2943] Disable slc for pagination queries
2014-03-01 01:15:09 -05: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
Benjamin Eberlei
1a08b52ab4
Cleanup test output.
2014-02-08 17:00:21 +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
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
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