Marco Pivetta
0c9a898ccd
DDC-3434 - removed unneeded escaping sequences
2014-12-05 17:09:59 +01:00
Guilherme Blanco
a6cf714f41
Merge pull request #1210 from Ocramius/hotfix/DDC-3336-undefined-property-with-paginator-and-scalar-expression-select
...
DDC-3336 - undefined property with paginator walker and scalar expression in ORDER BY clause
2014-12-05 10:42:55 -05:00
Marco Pivetta
c689ff081d
DDC-3336 - adding missing type-hint docblock
2014-12-05 14:55:56 +01:00
Marco Pivetta
2bc8811e62
DDC-3336 - renamed test method for clarity
2014-12-05 14:55:26 +01:00
Marco Pivetta
42e0e6b0b8
DDC-3336 - adding failing test case: scalar expressions in the ORDER BY
clause crash the LimitSubqueryOutputWalker
2014-12-05 14:54:26 +01:00
Marco Pivetta
529a268bbc
DDC-3336 - importing platform classes
2014-12-05 14:53:42 +01:00
Marco Pivetta
d20e018081
DDC-3427 - Adding a test to verify that the ClassMetadataFactory
supports setting an EntityManagerInterface
instance
2014-12-05 13:38:45 +01:00
Marco Pivetta
dcf824688a
Verifying that reflection properties that don't contain an embeddable will not crash reading properties, but will return null
instead
2014-12-05 13:15:15 +01:00
Marco Pivetta
a8b0ac82b4
Adding a data-provider case for a generic model (non-internal class)
2014-12-05 12:57:48 +01:00
Marco Pivetta
ecf028490f
Test to verify that Doctrine\ORM\Mapping\ReflectionEmbeddedProperty
is able to interact with internal PHP classes
2014-12-05 12:56:34 +01:00
Marco Pivetta
7f84bc76a6
Namespace correction
2014-12-05 12:43:12 +01:00
Marco Pivetta
56cb47c585
Adding a test asset to play around with reflection and internal classes
2014-12-05 12:41:22 +01:00
Marco Pivetta
c35f1310bc
#1204 - using specific XML assertions to build a less-fragile test (asserting on the entire string may cause failures if the XML structure changes)
2014-12-04 14:00:05 +01:00
Paulo de Freitas
aa1454562c
Fix sequence-generator in MetaData exporter for XML Driver.
2014-12-04 14:00:05 +01:00
Marco Pivetta
b3fe0904eb
#1196 DDC-3418 DDC-3419 - Minor CS fixes, explicit setExpectedException
calls
2014-11-27 19:10:45 +01:00
Marco Pivetta
71135972c6
#1196 DDC-3418 DDC-3419 - Renamed _factory
to cmf
2014-11-27 19:08:10 +01:00
Marco Pivetta
291b68634e
#1196 DDC-3418 DDC-3419 - Adding missing docblock for test private property
2014-11-27 19:07:16 +01:00
Marco Pivetta
34d2af8a77
#1196 DDC-3418 DDC-3419 - assertArrayHasKey()
instead of assertTrue(isset(...))
2014-11-27 19:06:42 +01:00
Marco Pivetta
084ce7ecc0
#1196 DDC-3418 DDC-3419 - reducing test assets annotations spacing for readability
2014-11-27 18:57:49 +01:00
Dustin Thomson
17ec1aab77
Modified class metadata factory to have entity tables inherit indexes from mapped superclasses
2014-11-27 18:41:33 +01:00
Marco Pivetta
64752532dd
#1188 - assertCount
instead of assertEquals
2014-11-27 17:57:42 +01:00
Marco Pivetta
42547234d2
#1188 - minor CS fixes (avoiding DQL one-liner)
2014-11-27 17:54:02 +01:00
Marco Pivetta
ecb09b5627
#1188 - accessing Doctrine\ORM\Tools\Pagination\Paginator#getCountQuery()
via reflection for test purposes
2014-11-27 17:50:27 +01:00
Merixstudio
18244161f7
Filtering by auto-increnement field causes test error.
...
Executing the same test many times causes error because AI fields.
2014-11-27 17:27:22 +01:00
Merixstudio
de1843ad30
Testing SQLs in functional test is not necessary
2014-11-27 17:27:22 +01:00
Merixstudio
fa014ee55d
Test parameter removing parameters passed to select part of query.
2014-11-27 17:27:22 +01:00
Christian Schmidt
89684b4ce9
Document that AUTOGENERATE_ constants are allowed
2014-11-21 21:11:32 +01:00
Marco Pivetta
ab62914f87
Merge pull request #1089 from encoder32/EntityRepositoryGeneratorDefaultRepository
...
EntityRepositoryGenerator default repository
2014-11-11 16:22:51 +01:00
Marco Pivetta
2888791e5c
#1173 - test CS fixes, reduced clutter code, made method names more explicit
2014-11-11 12:37:16 +01:00
Mathieu De Zutter
9caef62489
Test case for merging entities with associations to identical entities.
2014-11-11 12:12:25 +01:00
Christian Schmidt
c973d8df1a
Code style fixes.
2014-11-11 07:35:52 +01:00
Christian Schmidt
0990d64756
Ensure metadata cache is not ArrayCache in production
2014-11-08 15:05:56 +01:00
Marco Pivetta
76e1a469ef
Merge pull request #1027 from PowerKiKi/feature-partial-indexes
...
Support for Partial Indexes for PostgreSql and Sqlite
2014-11-05 13:19:29 +01:00
Marco Pivetta
20c6bfd360
Aligning expected exception test to typo fix in doctrine/doctrine2@b7d104d2a2 , which was breaking the build
2014-10-23 07:01:59 +02:00
Guilherme Blanco
3a0d7d1d6b
Merge pull request #1146 from c960657/order-by-assoc
...
Allow orderBy to reference associations
2014-10-21 21:40:04 -04:00
Marco Pivetta
9ccb56a7ab
#1120 - applying CS fixes as per @dantleech's review
2014-10-19 19:56:21 +02:00
Marco Pivetta
db74efbe34
#1120 - test coverage annotations
2014-10-19 18:22:28 +02:00
dantleech
37de75b2ae
Split new functionality into new command
2014-10-19 17:40:50 +02:00
dantleech
b5552a82e3
Code review fixes
2014-10-19 17:40:50 +02:00
dantleech
51cd8f7ce8
Added test
2014-10-19 17:40:50 +02:00
Marco Pivetta
264cd8ee11
#615 - Refactoring test case to remove duplication
2014-10-19 17:21:13 +02:00
Marco Pivetta
69494dc624
#615 - sql table aliases should stay constant over time
2014-10-19 17:18:30 +02:00
Marco Pivetta
10da2eb85b
#615 - Using a data provider to build aliases for the SqlWalkerTest
2014-10-19 17:16:07 +02:00
Marco Pivetta
17c9388473
#615 - Test coverage annotations
2014-10-19 17:10:39 +02:00
Marco Pivetta
435befd25c
#615 - EOF EOL fixes
2014-10-19 17:09:41 +02:00
Marco Pivetta
d557a0e01b
#615 - assignment alignment
2014-10-19 17:09:27 +02:00
Mike Meier
109b0444f5
add SqlWalkerTest for getSQLTableAlias method
2014-10-19 17:05:34 +02:00
Steve Müller
06b5c84728
Merge pull request #1160 from Ocramius/hotfix/#1159-multiple-entity-managers-per-repository-factory
...
#1159 - multiple entity managers per repository factory should be supported
2014-10-19 14:58:04 +02:00
Marco Pivetta
0f26c62e73
Merge pull request #1143 from MajorCaiger/master
...
Fixed a bug so that a versioned entity with a oneToOne id can be created
2014-10-19 11:52:37 +02:00
Marco Pivetta
697640f561
Setting default timezone, as HHVM is misconfigured on travis-ci
2014-10-19 10:54:35 +02:00
Marco Pivetta
f28fa2d3a1
#1159 - EOF EOL CS fixes for Doctrine\ORM\Repository\DefaultRepositoryFactory
tests
2014-10-14 01:49:57 +02:00
Marco Pivetta
56378b9bf0
#1159 - optimized imports
2014-10-14 01:40:38 +02:00
Marco Pivetta
7142c9029c
#1159 - Doctrine\ORM\Repository\DefaultRepositoryFactory
should create different repositories for different entity managers
2014-10-14 01:40:19 +02:00
Marco Pivetta
9ef3285ebb
#1159 - verifying that Doctrine\ORM\Repository\DefaultRepositoryFactory
considers custom repository class from metadata when instantiating repositories
2014-10-14 01:35:51 +02:00
Marco Pivetta
1e467fd23c
#1159 - verifying that Doctrine\ORM\Repository\DefaultRepositoryFactory
caches instantiated repositories locally
2014-10-14 01:32:04 +02:00
Marco Pivetta
5adce9a1e3
#1159 - base coverage for the Doctrine\ORM\Repository\DefaultRepositoryFactory
implementation
2014-10-14 01:29:45 +02:00
Christian Schmidt
94f5f53d2a
Allow orderBy to reference associations
2014-10-05 10:16:58 +02: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
3f8865c6fb
Merge pull request #1092 from birko/pagination-count-walker
...
[DDC-2794] Arbitrary Join count walkers solution
2014-09-23 00:30:30 +02:00
Steve Müller
b291d8d589
add support for embeddables in entity generator
2014-09-12 20:29:37 +02:00
Marco Pivetta
dd9a6bea0a
DDC-3272 - minor cleanups - inspecting a test failure related with @Doctrine\ORM\Mapping\Table
autoloading
2014-09-10 16:57:35 +02:00
Marco Pivetta
ffe38e5088
DDC-3272 - cleanups, importing classes, optimized imports
2014-09-10 16:41:49 +02:00
Marco Pivetta
b9090ef73e
DDC-3272 - failing test (to be run in insulation because of autoloading) that verifies that a wrong annotation is generated for @MappedSuperclass
2014-09-10 16:40:17 +02:00
encoder64
6bc003e47d
simple fixes
2014-09-10 01:07:22 +03:00
encoder64
e295a6d05e
visibility changed && few simple fixes
2014-09-09 22:17:10 +03:00
encoder64
409f6b4bc1
Unit Tests && simple fixes
2014-09-07 18:26:09 +03:00
encoder64
cd547fecea
Corrected names to DDC3231
2014-09-06 18:29:14 +03:00
encoder64
859a5f88cb
Unit Tests && simple fixes
2014-09-06 18:14:16 +03:00
Marco Pivetta
6e79515a75
Merge pull request #1123 from stof/patch-1
...
Fixed the structure of the reverse-engineered mapping
2014-08-30 04:19:55 +02:00
Guilherme Blanco
4b504c9436
Merge pull request #1109 from doctrine/hotfix/DDC-3120-php-5.6-RC3-compat
...
DDC-3120 - PHP 5.6-RC3 compatibility
2014-08-27 12:27:05 -04:00
Christophe Coevoet
f0c02bb6d9
Fixed the test expectations for the DatabaseDriver
2014-08-27 14:00:34 +02:00
Marco Pivetta
a2e0133a94
Adding DDC-3276 test group
2014-08-27 02:01:56 +02:00
Marco Pivetta
02ba144c8d
Adding test to verify SQL generation with an expression in COUNT()
2014-08-27 01:55:28 +02:00
Steve Müller
8d3fba5540
improve schema validator error message for invalid bi-directional relations
2014-08-26 19:46:17 +02:00
Guilherme Blanco
400acad533
Merge pull request #1105 from deeky666/nested-embeddables
...
Add support for nesting embeddables
2014-08-21 16:33:44 -04:00
Marco Pivetta
ff80187930
Merge pull request #1098 from encoder32/DDC-1590
...
#DDC-1590: Fix Inheritance in Code-Generation
2014-08-18 22:35:52 +02:00
Marco Pivetta
36bbd28b75
#1112 - adding test to verify that leading backslash is not relevant when fetching repositories
2014-08-18 15:11:39 +02:00
Marco Pivetta
ae16afa428
#1112 - adding DDC-3257 group to test method
2014-08-18 15:07:07 +02:00
Marco Pivetta
01f22988b1
#1112 - cleaning up repository test - makes assertions more clear/simpler to read
2014-08-18 15:06:37 +02:00
Giorgio Premi
a665cb0229
DefaultRepositoryFactory: single repository for aliased entities
2014-08-18 14:52:01 +02:00
Marco Pivetta
f8a8437c95
DDC-3120 - need to wakeup reflection BEFORE using any ClassMetadata
API
2014-08-14 15:51:17 +02:00
Marco Pivetta
c2993bcdeb
DDC-3120 - add failing test for un-serialization of an internal PHP class from cached metadata instance
2014-08-14 15:39:58 +02:00
Marco Pivetta
d52dd39592
DDC-3120 - add failing test for un-serialization of an internal PHP class
2014-08-14 15:38:55 +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
encoder64
cd4bc93483
Simple Fixes
2014-08-09 13:27:38 +03:00
encoder64
94ba6e2dfc
#DDC-1590: Simple Fixes
2014-08-04 20:18:26 +03:00
Marco Pivetta
723529ffff
Merge pull request #1069 from anho/reuse-console-app
...
added method to be able to reuse the console application
2014-08-04 16:17:11 +02:00
encoder64
e0ae7634d5
#DDC-1590: Fix Inheritance in Code-Generation
2014-08-03 17:02:33 +03:00
František Bereň
54ac6a0535
Updated Asset queries
...
Missing braces and selected fields
2014-07-31 09:01:58 +02:00
František Bereň
458b953522
fixed typos in tests
2014-07-31 08:43:02 +02:00
František Bereň
164352562b
Added Tests for Arbitrary Join
2014-07-31 08:31:39 +02:00
Jefersson Nathan
1b9f42ae67
Use null
comparation instead of is_null()
2014-07-30 16:54:24 -03:00
Andreas Hörnicke
1d16e5322f
added a simple test
2014-07-24 09:23:36 +02:00
Adrien Crivelli
27adf8d6e9
Refactor partial into options array
...
This coherent with what is done for Table. All platform specific things
are grouped into an options array. Eventually flags should be migrated
into options as well.
2014-07-22 10:32:31 +09:00
Adrien Crivelli
eeb7ff4a6d
Support for Partial Indexes for PostgreSql and Sqlite
...
Support for Partial Indexes was available in Doctrine 1 following
http://www.doctrine-project.org/jira/browse/DC-82 . This commit
reintroduce support for Doctrine 2. We use the same syntax with an
optionnal "where" attribute for Index and UniqueConstraint.
2014-07-22 10:32:30 +09: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
Daniel Sippel
ae2235fd3c
DDC-2021 sql generation test: remove comment
2014-07-10 00:32:24 +02:00
Daniel Sippel
b31ba98076
DDC-2021 add sql generation test
2014-07-10 00:27:28 +02:00
Daniel Sippel
45358bf5d0
possible fix for DDC-2021
2014-07-09 16:39:44 +02: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
Vasek Purchart
ee5f465a2f
set namespace in setup only on CacheProvider instances
2014-06-26 01:29:35 +02: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
Guilherme Blanco
381cf8022f
Merge pull request #1063 from FlorianLB/master
...
singularize variable name on add/remove methods for EntityGenerator
2014-06-21 08:49:53 -04:00
Marco Pivetta
19b5e87cab
on-update
is not supported anymore
2014-06-19 16:05:12 +02:00
Marco Pivetta
e940ce1df6
Replacing "
with '
to avoid escaping warnings
2014-06-19 15:54:43 +02:00
Marco Pivetta
59720370f9
Corrected FQCN reference in @expectedException
2014-06-19 15:53:37 +02:00
Marco Pivetta
7dfca09ff6
Minor CS fixes (use
statements compliant with PSR-2)
2014-06-19 15:53:11 +02:00
FlorianLB
fdca5d7584
singularize variable name on add/remove methods for EntityGenerator
2014-06-19 10:00:40 +02: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
32b24ba155
Fixed mismatch in expected exception message, see doctrine/doctrine2#1048
2014-06-07 14:55:59 +02:00
Steve Müller
dcf8d6a86e
ignore case when checking for existing methods to avoid redeclaration on update
2014-06-05 15:58:54 +02:00
Michaël Gallego
140dc92e5f
Enforce Criteria
2014-05-18 12:47:59 +02:00
Marco Pivetta
c68ed4c204
Verifying that the persister is used only once when matching on a lazy criteria collection
2014-05-17 19:06:16 +02:00
Marco Pivetta
d2174a893a
Verifying that count
is not called on the persister when the collection is initialized
2014-05-17 18:56:42 +02:00
Marco Pivetta
546bb53ef9
Verifying that count on the lazy criteria collection is cached even with 0
count
2014-05-17 18:51:33 +02:00
Marco Pivetta
c46b63f6b4
Verifying that count on the lazy criteria collection is cached
2014-05-17 18:51:01 +02:00
Marco Pivetta
81fbb049a5
LazyCriteriaCollection test setUp
2014-05-17 18:48:25 +02:00
Marco Pivetta
7cb40ed915
Mocking up tests for the lazy-criteria-collection
2014-05-17 18:45:33 +02:00
Michaël Gallego
ddfc951a0e
Remove useless docblock
2014-05-17 14:33:15 +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
172df22281
Fix inconsistent mapping
2014-05-15 18:22:57 +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
Michaël Gallego
632382b069
Add missing methods to the mock
2014-05-15 18:22:56 +02:00
Michaël Gallego
9813c2d5f1
Add tests
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
Guilherme Blanco
4874070b3f
Merge branch 'feature/default-query-hints' of https://github.com/Strate/doctrine2 into Strate-default-query-hints
2014-05-15 01:15:34 +00: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
9692fc8c5b
Fixed issue if aliases were specific names, you would either get completely misleading results (dql alias: scalars) or a fatal error (dql alias: newObjects).
2014-04-24 04:47:13 +00: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
63d21ca4b2
DDC-3085 Verify ResultVariable works in combination with NullComparisonExpression wihle in HAVING clause.
2014-04-21 04:01:32 +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
6a8ee87268
Made DQL and EBNF in sync.
2014-04-20 20:27:57 +00:00