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
Adrian Olek
0caeb4edbf
Initialize table options annotation, fixed condition in AnnotationDriver
2014-03-23 14:37:55 +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
Adrian Olek
49587776fa
Renamed _exportOptions method
2014-03-16 17:31:15 +01:00
Adrian Olek
e403bf207c
cs fix
2014-03-16 16:56:46 +01:00
Adrian Olek
553883bdd1
Added options attribute export to Annotation, Xml & Yaml
...
exporters.
2014-03-16 16:50:41 +01: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
Per Persson
3543ccea7f
Pass class name to constructor.
2014-02-11 23:48:31 +01:00
Per Persson
7ef1063007
Pass class name to constructor.
2014-02-11 23:44:24 +01:00
Per Persson
4b061a0e4c
Add class name as argument.
2014-02-11 23:40:38 +01: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
Strate
324f200f1b
Merge branch 'master' into bugfix/join-with-condition-placement-fix
2014-02-10 08:22:11 +04:00
Benjamin Morel
08f6291350
Cleaned up further unused imports.
2014-02-09 23:45:22 +00:00
Benjamin Morel
412e4ab9da
Cleaned up unused imports
2014-02-09 22:12:51 +00:00
Thomas Lallement
2a77a739dc
Fix CS
2014-02-09 16:37:32 +01:00
Benjamin Eberlei
4c4e4f6d3d
Merge pull request #939 from doctrine/DDC-1985
...
[DDC-2939] Order Preservation
2014-02-09 15:43:57 +01:00
Wouter J
d7b917aa49
Fixed InputOption modes
2014-02-09 15:10:00 +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
d31f7ebf57
[DDC-1985] Fix ordering preservation in SQL limit subquery output walker.
2014-02-08 17:01:55 +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 Eberlei
105d9e998b
Merge pull request #927 from timdev/timdev-fixes
...
s/EntityManager/EntityManagerInterface/ in a few places
2014-02-08 15:30:15 +01:00
Benjamin Eberlei
f07c576e5f
Merge pull request #932 from deeky666/DDC-2919
...
[DDC-2919] Make lock mode usage consistent
2014-02-08 15:27:35 +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
shustrik
b167a64544
remove doc
2014-02-06 20:08:07 +03:00
shustrik
12985b7811
add iterator to tree walker chain
2014-02-06 19:39:40 +03:00
Asmir Mustafic
1d40c85c3c
Right owning side column selection
2014-02-06 14:26:06 +01:00
shustrik
6fe40b055f
fix return walker
2014-02-06 16:18:35 +03:00
shustrik
a6b43b93ac
fix TreeWalkerChain.
...
Create walker object in foreach.
2014-02-06 16:06:00 +03:00
Asmir Mustafic
2eb428df79
code style
2014-02-06 12:55:33 +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
Strate
5c44dd3823
Allow to use object as a hint value.
2014-02-04 15:51:53 +01:00
Strate
352f38a77e
Fix comment
2014-02-04 15:51:53 +01:00
Strate
e8d47fa9a3
Added a new configuration option: defaultQueryHints, which allows to populate all queries by default set of hints.
2014-02-04 15:51:53 +01:00
Tim Lieberman
25d71462e3
Make SchemaTool and SchemaValidator use EntityManagerInterface instead of EntityManager
2014-02-01 05:11:20 +00:00
Marco Pivetta
e322ab4deb
DDC-2931 - Removing previous broken fix for DDC-2931 - hardened
2014-02-01 02:00:10 +01:00
Marco Pivetta
7a32eca039
DDC-2931 - Safe comparison between proxies and entities when refreshing objects
2014-02-01 01:57:51 +01:00
Tim Lieberman
bf9fbd896b
Substitute EntityManagerInterface for EntityManager in Console EntityManagerHelper
2014-02-01 00:23:23 +00:00
Tim Lieberman
43d94e7b5e
Console EntityManagerHelper now accepts EntityManagerInterface as constructor argument, instead of insisting on an EntityManager
2014-01-31 15:32:31 -08:00
Fabio B. Silva
7e5a1c6b0d
Fix lazy association load
2014-01-28 12:26:10 -05:00
Marco Pivetta
596d2070ed
DDC-2931 - Removing refresh hints when fetching association data in hydrators
2014-01-24 02:45:28 +01:00
Strate
04e6061584
Added an exception when invalid case.
...
Fixes after code review.
2014-01-20 20:06:53 +04:00
Strate
41ec5fd56d
Fix applying ON/WITH conditions to first join in Class Table Inheritance
...
Now we build nested joins for CTI when using ON/WITH clause.
2014-01-19 20:56:24 +04:00
Strate
b69481b639
Merge branch 'master' into bugfix/join-with-condition-placement-fix
2014-01-19 15:06:01 +04:00
Steve Müller
b9ff877f14
fix SQL generation on table lock hint capable platforms
2014-01-15 22:46:09 +01:00
Geoffrey Wagner
b863b9b957
Fix some code standard things
2014-01-12 17:14:32 -06: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
Geoffrey Wagner
db31c58102
Fix Lifecycle Callbacks
...
Remove a bit of code that breaks lifecycle callbacks of parent MappedSuperclasses
2014-01-08 17:17:47 -06:00
Guilherme Blanco
b65d9e6c83
Merge pull request #896 from holtkamp/patch-2
...
Ensure <cascade/> elements preceed <join-columns/>
2014-01-05 11:32:31 -08:00
Menno Holtkamp
fc2b9980ae
Exclude exporting inheritanceType for INHERITANCE_TYPE_NONE
2014-01-05 18:53:31 +01:00
Menno Holtkamp
797fb9c34a
Respected 'inheritanceType' at Entity level
...
It was (incorrectly) fetched from Table-level.
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/annotations-reference.html#annref-inheritancetype
2014-01-05 18:41:55 +01:00
Menno Holtkamp
85a16f9f28
Ensure <cascade/> elements preceed <join-columns/>
...
When converting annotations based metadata to XML, the position of the <cascade/> elements resulted in XSD validation errors caused by the definitions of the association ComplexTypes:
- https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd#L463
- https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd#L482
- https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd#L495
- https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd#L517
Since changing the XSD might result in validation problems in existing mappings, changing the XmlExporter seems a better approach.
Note that the '<cache/>' element is not yet generated by the XmlExporter, but according to the XML Schema, it should precede the '<cascade/>' element.
2014-01-05 15:34:59 +01:00
Johannes Schmitt
e879626d73
Merge branch 'master' of github.com:doctrine/doctrine2 into rsmBuilder
2014-01-04 17:57:39 +01:00
Johannes Schmitt
946419459c
fixes bad merge
2014-01-04 17:54:46 +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
69cad4079d
Merge pull request #820 from apancutt/master
...
Added support for field options to FieldBuilder
2014-01-03 14:03:25 -08:00
Benjamin Eberlei
2a9351b8dc
[DDC-2792] Fix fatals
2014-01-03 23:01:05 +01:00
Vyacheslav Ganzin
1edf6b65b1
joinColumn is not required in manyToMany
...
annotation behavior copied
2014-01-03 22:27:27 +01:00
Benjamin Eberlei
c8c7cf0528
Fix tests after merge of QueryBuilder#addCriteria changes.
2014-01-03 21:28:06 +01:00
Piotr Antosik
eb45690e10
Fix typos - QueryBuilder
2014-01-03 17:28:42 +01:00
Adam Pancutt
352f5394e5
Removed FieldBuilder::unsigned() method as it is only supported by MySQL
2014-01-03 09:48:38 +00:00
Benjamin Eberlei
9a3cf77919
[DDC-2128] Fix PR according to comments.
2014-01-03 00:15:14 +01:00
catalin
93c018668d
checking preg result. Should I raise an error
...
throw new ORMException("Error regular expression: " . $filter);
2014-01-03 00:15:14 +01:00
catalin
0d8f572661
added space after type cast (I could not find any rule in psr1/2 standard, but I modified in PhpStorm)
2014-01-03 00:15:14 +01:00
catalin
2326033e79
added preg_quote to $filter input
2014-01-03 00:15:13 +01:00
catalin
57e7559c1b
- Applied Phpstorm PSR format
...
- Changed RegExp format
2014-01-03 00:15:13 +01:00
Catalinux
6963bf6028
Now MetaDataFilter takess also regexp. For example whern you want to
...
extract metadata if you would filter like this: --filter="Article"
would extract also for "ArticleItems" (article_items table). Now you
can use --filter="Article$" if you want only that table (articl)
2014-01-03 00:15:13 +01:00
Benjamin Eberlei
8118dddc6a
Merge pull request #674 from TorbenBr/master
...
Shortcut for force
2014-01-02 15:02:46 -08:00
Benjamin Eberlei
22d4d2e812
Merge branch 'DDC-2700'
2014-01-02 23:50:21 +01:00
Benjamin Eberlei
53ed898684
[DDC-2700] Add test and fix CS.
2014-01-02 23:50:15 +01:00
Benjamin Eberlei
2feffe164a
Merge branch 'DDC-2732'
2014-01-02 23:33:56 +01:00
Benjamin Eberlei
96ec3c1613
Merge pull request #830 from sandermarechal/sort-alias
...
[DDC-2764] Prefix criteria orderBy with rootAlias
2014-01-02 14:15:01 -08:00
Benjamin Eberlei
41581847b2
Merge pull request #833 from ronanguilloux/patch-console-entity-generator
...
Generate-Entities-Console-Command: Adding an 'avoid backup' flag
2014-01-02 14:13:27 -08: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
05576d3e1c
Merge pull request #844 from terite/orm-validate-skip
...
Teach orm:validate-schema to --skip-mapping and --skip-sync
2014-01-02 14:00:22 -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
3a8aaea14a
Merge pull request #794 from stefankleff/patch-1
...
Multiple invokation of listeners on PreFlush event
2014-01-02 13:16:21 -08:00
yktd26
c9e06a6854
Format code
2013-12-31 12:25:14 +01:00
yktd26
bee74f898d
autoGenerate arg from bool to int
...
For using all four modes of proxies generation, change the 4th arg of
ProxyFactory's constructor to integer
2013-12-31 11:58:36 +01:00
Guilherme Blanco
a7b9140d2f
Merge pull request #890 from deeky666/DBAL-563
...
[DBAL-563] Add general IDENTITY generator type support for sequence emulating platforms
2013-12-30 21:34:20 -08:00
Sergey Polischook
07f67c5d1a
Allow to not generate extra use
...
For case when we not generate annotation (by default at doctrine orm:generate-entities) allow to not generate extra use for it -
```php
use Doctrine\ORM\Mapping as ORM;
```
For example if generate entities for my project that use only dbal in pord but use orm for generate entities in dev mode.
2013-12-30 04:43:35 +02:00
Steve Müller
337857dc8a
add general IDENTITY generator type support for sequence emulating platforms
2013-12-29 05:55:16 +01:00
Matthieu Napoli
c9791fe97f
Inlined the model for the DCC2775 test case inside the test class
2013-12-23 09:55:10 +01:00
Strate
c6810861ca
Fix applying ON/WITH conditions to first join in Class Table Inheritance
2013-12-22 21:02:14 +04:00
fabios
cf4c805427
Fix cache misses using one-to-one inverse side
2013-12-20 15:37:07 -05:00
fabios
22e3a76327
Fix non initialized association proxy
2013-12-20 10:39:03 -05:00
Benjamin Eberlei
f0546455d5
Remove left over ElementCollection code.
2013-12-20 15:01:10 +01:00
Michaël Perrin
1032a16db2
Simpler way to handle Collection parameters in DQL queries (refs #DDC-2319)
2013-12-17 11:37:17 +01:00
Benjamin Eberlei
ad9366a1fc
Merge pull request #871 from elmariachi111/patch-1
...
XCache cannot be flushed on the CLI -> for pretty much the same reason as APC
2013-12-16 15:47:09 -08:00
fabios
4e0e1b8061
CS/Typo Fixes
2013-12-16 15:55:54 -05:00
fabios
0a66a2bc09
CS/Doc Fixes
2013-12-16 11:05:05 -05:00
fabios
71903c28a8
Region cache clear commands
2013-12-16 11:05:05 -05:00
fabios
fb98277783
Fix docs
2013-12-16 11:05:05 -05:00
fabios
d135e402bb
handle update/delete queries
2013-12-16 11:05:05 -05:00
Fabio B. Silva
61bff7d5f6
Fix CS and update docs
2013-12-16 11:05:04 -05:00
Fabio B. Silva
1438a59c00
Fix persister query cache invalidation
2013-12-16 11:05:04 -05:00
fabios
1bfa8f0fc3
Extract cache config
2013-12-16 11:05:04 -05:00
Fabio B. Silva
3140593e9b
Second level cache
2013-12-16 11:05:04 -05:00
Benjamin Eberlei
86ae6f18ab
Merge branch 'DDC-2645'
2013-12-15 23:31:49 +01:00
Pouyan Savoli
a5b7069fd7
[DDC-2645] Apply patch to fix issue
2013-12-15 23:31:35 +01:00
Aaron Muylaert
3cc630798b
Fix DDC-1787.
...
Credit goes to Jack van Galen for fixing this issue.
Fix for JoinedSubclassPersister, multiple inserts with versioning throws
an optimistic locking exception.
2013-12-14 13:50:46 +01:00
Stefan A
eded05d415
XCache cannot be cleared on CLI (like APC)
2013-12-10 19:51:41 +01:00
Stefan A
88a56ee8f8
XCache cannot be cleared on CLI (like APC)
2013-12-10 19:51:02 +01:00
Stefan A
53fbb0b2d1
XCache cannot be cleared on CLI (like APC)
2013-12-10 19:48:30 +01:00
Luís Otávio Cobucci Oblonczyk
6d58824ac5
Use docblox from EntityManagerInterface
2013-12-10 12:09:36 -02:00
Luís Otávio Cobucci Oblonczyk
67135e5d6f
Fixing FQCN on docblox
2013-12-10 12:08:53 -02:00
Luís Otávio Cobucci Oblonczyk
877ba9bf17
Documenting interface methods (based on entity manager)
2013-12-10 11:18:27 -02:00
Jan Kramer
fbb7b5ad8e
Fix XmlDriver to accept embeddables
2013-12-07 16:40:54 +01:00
Jan Kramer
928c32d616
Update XML schema to reflect addition of embeddables
2013-12-07 16:38:32 +01:00
Johannes M. Schmitt
e5cab1db2d
adds embedded classes to cache
2013-11-28 17:32:47 +01:00
Guilherme Blanco
0e3c57dbd3
Merge pull request #849 from bsahlhof/master
...
Error with Same Field, Multiple Values, Criteria and QueryBuilder
2013-11-25 21:20:14 -08:00
Johannes M. Schmitt
8ae48ad9db
lifts an unnecessary restriction on ResultSetMappingBuilder
2013-11-23 19:47:56 +01:00
fabios
9e3ad91225
Version 2.5.0-DEV
2013-11-19 11:50:43 -05:00
Brad Sahlhoff
96fb0d7e14
Changed logic to allow joining games, and becoming friends
...
Added Spacing
2013-11-19 11:09:23 -05:00
fabios
e69cd37226
Event listener to programmatically attach entity listeners.
2013-11-18 15:03:00 -05:00
Brad Sahlhoff
c2997b3961
Add ability to test same parameter name for multiple values.
2013-11-18 10:36:46 -05:00
flack
ffd858b238
Merge remote-tracking branch 'upstream/master' into avoid-update-on-delete
2013-11-17 11:36:06 +01:00
flack
9807718100
Also skip entities scheduled for deletion when committing multiple entities
2013-11-17 11:31:21 +01:00
Fabio B. Silva
3529cd4282
Merge pull request #797 from peterkokot/patch-1
...
CS fixes
2013-11-16 10:52:09 -08:00
Johannes M. Schmitt
2a73a6f1f7
some cs fixes
2013-11-13 00:05:55 +01:00
Johannes M. Schmitt
fb3a06b9e7
adds support for XML/Yaml drivers
2013-11-13 00:03:21 +01:00
David Stensland
e6be52af3a
Teach orm:validate-schema to --skip-mapping and --skip-sync
...
Use --skip-mapping to not check if the current mapping informaiton
is valid or not.
Use --skip-sync to not check if the database schema is in line with
the current schema mapping.
2013-11-11 18:12:28 -05:00
flack
9016a5a854
don't compute changeset for entities that are going to be deleted
2013-11-12 00:11:50 +01:00
Matthieu Napoli
e018bb83f0
[DDC-2775] Bugfix
2013-11-04 12:42:23 +01:00
Johannes M. Schmitt
17e0a7b2f8
makes column prefix configurable
2013-11-02 14:07:14 +01:00
Johannes M. Schmitt
2b2f4894cb
fixes declaring class
2013-11-02 13:55:19 +01:00
Johannes M. Schmitt
0cd6061fc2
fixes a bad merge
2013-11-02 13:35:41 +01:00
Johannes M. Schmitt
5586ddd6b7
removes restrictions on constructors of embedded objects
2013-11-02 13:31:44 +01:00
Johannes M. Schmitt
ece62d6ad7
adds support & tests for embeddables in inheritance schemes
2013-11-02 13:23:56 +01:00
Johannes M. Schmitt
d4e6618b28
Merge remote-tracking branch 'schmittjoh/ValueObjects'
2013-11-02 11:20:44 +01:00
Johannes M. Schmitt
97836ef8c6
some consistency fixes
2013-11-01 22:37:59 +01:00
Johannes M. Schmitt
f86abd81dd
fixes annotation context
2013-11-01 22:33:59 +01:00
Johannes M. Schmitt
20fb8270dc
make use of NamingStrategy for columns of embedded fields
2013-11-01 21:44:57 +01:00
Johannes M. Schmitt
fd8b5bd045
removes outdated todos
2013-11-01 21:16:02 +01:00
Johannes M. Schmitt
c67ac8a11b
adds support for selecting based on embedded fields
2013-11-01 20:38:19 +01:00
Johannes M. Schmitt
38b041d909
Merge remote-tracking branch 'origin/ValueObjects'
...
Conflicts:
lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
2013-11-01 20:17:43 +01:00
Sander Marechal
35a62e9a05
Add rootAlias to Criteria where clauses
2013-11-01 13:43:03 +01:00
Sander Marechal
202039e853
Set rootAlias outside loop
2013-11-01 13:19:33 +01:00
Ronan Guilloux
48d078a856
no-backup instead of nobackup
2013-10-31 12:25:43 +01:00
Ronan Guilloux
5c01e8e99e
Generate-Entities-Console-Command: Adding an 'avoid creating backup files' flag
2013-10-31 12:00:32 +01:00
Sander Marechal
b6f8d53ff1
[DDC-2764] Prefix criteria orderBy with rootAlias
2013-10-29 11:11:46 +01:00
Benjamin Eberlei
9a3298347c
[DDC-2759] Fix regression in ArrayHydrator introduced in DDC-1884 at SHA c7b4c9bf0f
2013-10-26 11:16:07 +02:00
Brikou CARRE
84b980227f
s/PostgreSQLPlatform/PostgreSqlPlatform/
2013-10-21 09:44:48 +02:00
Marco Pivetta
a96fe8770c
Merge pull request #815 from nicolas-bastien/patch-2
...
Remove unused use statement
2013-10-18 03:46:09 -07:00
Adam Pancutt
553086ae3d
Removed check for instantiated options array
2013-10-15 13:17:07 +01:00
Adam Pancutt
db5274113a
Code style fix
2013-10-15 12:49:34 +01:00
Adam Pancutt
25342b706d
Added support for field options to FieldBuilder
2013-10-15 12:37:06 +01:00
Vincent BOURDEIX
5506d7adce
Fixes a Fatal Error when using a subexpression in parenthesis
...
When some dql contains a subselect with expression in parenthesis, the
expression of the $simpleSelectExpression parameter given to
walkSimpleSelectExpression is an instance of AST\ParenthesisExpression.
Before this commit, this case defaulted to
$this->walkEntityIdentificationVariable($expr) where $expr is supposed
to be a string. A fatal error was then yielded.
2013-10-14 15:04:52 +02:00
Guilherme Blanco
bb63058410
Merge pull request #780 from terite/DDC-2655
...
[DDC-2655] Don't let getOneOrNullResult throw NoResultException
2013-10-11 13:43:27 -07:00
Guilherme Blanco
be81b46d8e
Merge pull request #791 from myclabs/CriteriaContains
...
Implemented "contains" operator for Criteria expressions
2013-10-11 06:33:40 -07:00
Eduardo
aabb34f853
Options not respected for ID Fields in XML Mapping Driver
...
Same bug of the YAML driver, see: http://www.doctrine-project.org/jira/browse/DDC-2661
2013-10-09 22:40:29 +02:00
David Stensland
089006927e
[DDC-2655] Don't let getOneOrNullResult throw NoResultException
2013-10-09 11:38:33 -04:00
Nicolas Bastien
33ddb9c0ca
Remove unused use statement
2013-10-07 15:58:41 +02:00
flip111
62ae8dc81e
Update SingleScalarHydrator error message
...
bummed into this one. Now more developer friendly :)
2013-10-02 14:12:35 +02:00
Benjamin Eberlei
fc53bc8909
Fix some LGPL occurances to MIT
2013-10-02 12:07:37 +02:00
Guilherme Blanco
2c4c26c5d6
Merge pull request #801 from flip111/patch-4
...
Update SqlWalker.php fixed wrong GROUP BY clause on SQL Server platform
2013-10-01 08:21:20 -07:00
flip111
228a501014
Made the code prettier :)
2013-10-01 16:53:53 +02:00
Guilherme Blanco
4051d0da86
Merge pull request #807 from janbster/fix-optimisticlock
...
Fix for OptimisticLockingException
2013-10-01 07:41:57 -07:00
jan brunnert
f64d6695ce
Removed unnecessary is_object() check
2013-10-01 13:00:37 +02:00
Guilherme Blanco
d8335eee7b
Merge pull request #793 from flip111/patch-2
...
Improved error messages in Paginator: LimitSubqueryOutputWalker
2013-09-30 11:07:49 -07:00
jan brunnert
a4e3921090
When the OptimisticLockingException is generated with the static function lockFailedVersionMismatch and the passed parameters are DateTime instances, the exception could not be thrown because the DateTime object is not implicitly converted to a string.
2013-09-30 11:32:46 +02:00
flip111
72ae7f5497
Changed GroupBy alias to real column name for all platforms and adjusted failing test accordingly. Has fallback in cases where real column name is not possible (example: Doctrine\Tests\ORM\Query\SelectSqlGenerationTest::testGroupBySupportsIdentificationVariable)
2013-09-30 11:08:42 +02:00
Diego Mazzaro
bd0e0c3fcf
[bugfix] if BIGINT or SMALLINT version field was not incremented.
...
Made version field accepted type coherent between ClassMetadataInfo and BasicEntityPersister
2013-09-29 16:17:10 +02:00
Cas
1fda797c8f
Appended newline to (newly) generated files for PSR2 compatibility
...
Appended newline to (newly) generated files for PSR2 compatibility
Additionally, slightly improved styling of concatenating return value
2013-09-28 17:47:35 +02:00
Benjamin Eberlei
008187982d
Merge pull request #792 from FabioBatSilva/DDC-2668
...
[DDC-2668] Fix trim leading zero string
2013-09-26 14:23:07 -07:00
Kristian Mide
0326731348
Respect unsigned fields when tables get converted to entities.
...
This is working on our mysql setup, however i have no idea of the consequences of this change when using other RDBMSes.
2013-09-26 14:41:06 +02:00
flip111
76fda9562c
Update SqlWalker.php fixed wrong GROUP BY clause on SQL Server platform
...
Without this patch a query would like like:
```
SELECT c0_.Country AS sclr0
FROM Continent c0_ WITH (NOLOCK)
WHERE c0_.Country = 38
GROUP BY sclr0
```
Using the column alias in the GROUP BY clause. However this is not allowed on SQL Server. References:
1. http://stackoverflow.com/a/3841804
2. http://technet.microsoft.com/en-us/library/ms189499.aspx (Logical Processing Order of the SELECT statement)
The correct query should be:
```
SELECT c0_.Country AS sclr0
FROM Continent c0_ WITH (NOLOCK)
WHERE c0_.Country = 38
GROUP BY c0_.Country
```
2013-09-26 14:11:56 +02:00
Alex Pogodin
a75d73b889
Identifier can be empty for MappedSuperclasses
...
When MappedSuperclass is inspected without identifier column been assigned, always return false. Solves "Undefined offset" notice.
2013-09-22 17:19:51 +03:00
Peter Kokot
dca09148ca
CS fixes
2013-09-22 02:12:30 +02:00
Stefan Kleff
1ec5632a18
Multiple invokation of listeners on PreFlush event
...
Only lifecycle callbacks and entity listeners should be triggered here. The preFlush listener event is already triggered at the beginning of commit()
2013-09-19 12:13:12 +02:00
flip111
a18aba1bb6
Improved error messages in Paginator: LimitSubqueryOutputWalker
...
The already existing follow-up check throwing "Not all identifier properties can be found in the ResultSetMapping: %s" is a much more technical description.
If $sqlIdentifier is empty (count 0) it can be concluded that there are no mapped results. An alternative error message could thus be "The Paginator does not support queries without mapped results." (line 153).
Possibly '!=' on line 154 could be replaced by '>' because i think this is the only situation that can occur. But since i don't know this for sure, i left it like i found it.
Didn't use elseif in this commit as per Stof his suggestion.
2013-09-17 21:01:09 +02:00
flip111
b803f06c8f
Improved error messages in Paginator: LimitSubqueryOutputWalker
...
The already existing follow-up check throwing "Not all identifier properties can be found in the ResultSetMapping: %s" is a much more technical description.
If $sqlIdentifier is empty (count 0) it can be concluded that there are no mapped results. An alternative error message could thus be "The Paginator does not support queries without mapped results." (line 153).
Possibly '!=' on line 154 could be replaced by '>' because i think this is the only situation that can occur. But since i don't know this for sure, i left it like i found it.
2013-09-17 15:07:08 +02:00
Fabio B. Silva
689da2f36b
[DDC-2668] Fix trim leading zero string
2013-09-16 21:36:19 -04:00
Matthieu Napoli
6f538c509c
Implemented "contains" operator for Criteria expressions
2013-09-16 14:56:04 +02:00
javer
64a0161935
HHVM compatibility: func_get_args
...
All func_get_args() calls have been moved to the top of the methods
because HHVM doesn't keep a copy of the original args for performance
reasons.
See facebook/hiphop-php#1027 for details.
2013-09-15 20:57:30 +03:00
Benjamin Eberlei
b6e624b6bf
Delete some very old, leftover code.
2013-09-11 22:43:38 +02:00
Matthieu Napoli
8875462241
#DDC-2664 Improving and fixing documentation for new Proxy factory flags usage as of DCOM-210
2013-09-09 11:30:18 +02:00
Benjamin Eberlei
4a50493ab7
[DDC-2608][DDC-2662] Fix SequenceGenerator requiring "sequenceName" and now throw exception. Fix a bug in quoting the sequenceName.
2013-09-08 15:59:58 +02:00
Benjamin Eberlei
5c2157219d
[DDC-2660] Fix error with NativeSQL, ResultSetMappingBuilder and Associations as Primary Key.
2013-09-08 14:38:59 +02:00
Benjamin Eberlei
3719a6f2f2
[DDC-2661] Fix bug in YamlDriver not passing options from id to mapField()
2013-09-08 10:37:13 +02:00
Maks Feltrin
f98dfc4758
DO NOT OVERRIDE CUSTOM TREE WALKERS IN getIterator()
2013-08-29 08:36:39 +02:00
Guilherme Blanco
fc7719d5fa
Merge pull request #771 from caponica/cqb-indexby
...
Added indexBy option to createQueryBuilder
2013-08-28 20:15:55 -07:00
Christian Morgan
b0513a7517
Added indexBy option to createQueryBuilder
...
Added way to access the underlying QueryBuilder#from() method's 'indexBy' parameter when using EntityRepository#createQueryBuilder()
2013-08-28 22:35:29 +01:00
Attila Fulop
5669aaf4a3
Fix for entity generator discriminator column
2013-08-28 18:26:16 +03:00
Guilherme Blanco
09d51f9df5
Fixing missing table aliases when using Many2Many persister.
2013-08-21 23:39:40 -04:00
Adam Prager
b041c22814
Entity generator - trait in parent class
2013-08-20 12:15:17 +02:00
Guilherme Blanco
cc83ac6ce8
Centralize InputParameter SQL generation.
2013-08-19 00:33:45 -04:00
Guilherme Blanco
43fc8bafa7
DDC-1858 Added missing support to ResultVariable in LikeExpression.
2013-08-18 23:52:32 -04:00
Guilherme Blanco
605c32dbb3
Merge pull request #758 from doctrine/DDC-2235
...
Fixed DDC-2235.
2013-08-15 21:36:22 -07:00
Guilherme Blanco
f674445486
Fixed DDC-2235.
2013-08-16 00:07:06 -04:00
Douglas Greenshields
494ab1fc2b
corrected English grammar in docblocks
2013-08-13 20:45:04 +01:00
Guilherme Blanco
7f1c1d2b4a
Fixed DDC-2506 by manually updating code. Closes PR #708 .
2013-08-13 01:07:34 -04:00
Dustin Thomson
27bae51fa0
Modified executeInserts method in JoinedSubclassPersister to only check for the presence of columns in a composite primary key
2013-08-11 19:41:10 -06:00
Roger Llopart Pla
1bc6140394
Added docblock.
2013-08-10 16:58:07 +02:00
Roger Llopart Pla
7f1becf283
Appending the Paginator tree walker hint, instead of removing all the other hints.
2013-08-10 16:58:07 +02:00
Benjamin Eberlei
95af021ed9
Merge pull request #737 from Koc/fix-schema-validator-master
...
Skip not mapped public properties in SchemaValidator
2013-08-10 07:27:45 -07:00
Benjamin Eberlei
610e18949b
Merge pull request #744 from jbruni/patch-1
...
Corrected PHP type for "decimal" mapping type
2013-08-10 07:23:50 -07:00
Konstantin.Myakshin
3c1fd9a3a9
Skip not mapped public properties in SchemaValidator
2013-08-07 01:18:15 +03:00
amakhov
d8fcdc0c54
Add hour to DATE_ADD and DATE_SUB. Excepcion message fix
2013-08-06 12:40:30 +04:00
amakhov
dd975fe53d
Add hour to DATE_ADD and DATE_SUB
2013-08-06 12:20:22 +04:00
Guilherme Blanco
354d7050dc
Merge pull request #720 from bakura10/fix-paginator
...
Allow to have non-distinct queries
2013-08-05 20:59:12 -07:00
Guilherme Blanco
e0fd377828
Removed ticket that was breaking the build. DDC-2524 is a circular dependency that is impossible to be fixed with our current codebase.
2013-08-03 19:03:10 -04:00
Guilherme Blanco
d9c1782a4f
Properly fixed DDC-1858. Added support for ResultVariable in NullComparisons while using HavingClause.
2013-08-03 17:38:55 -04:00
J Bruni
3c613b9c02
Corrected PHP type for "decimal" mapping type
...
"Basic Mapping" documentation says:
"decimal: Type that maps a SQL DECIMAL to a PHP string."
2013-08-03 05:44:15 -03:00
Guilherme Blanco
a19106b03d
Merge pull request #731 from austinsmorris/PersistentCollection-initialize-coll
...
[DDC-2564] - PersistentCollection - initialize coll
2013-07-30 22:36:15 -07:00
Guilherme Blanco
157588f6dc
CS fixes.
2013-07-30 12:11:08 -04:00
Guilherme Blanco
c7b4c9bf0f
Fixed DDC-1884.
2013-07-30 01:29:34 -04:00
Guilherme Blanco
0e010994a7
Merge pull request #740 from doctrine/FilterCollectionEnhancement
...
Synchronized support of FilterCollection with ODM by adding missing method
2013-07-29 18:44:10 -07:00
Guilherme Blanco
d4814dec42
Synchronized support of FilterCollection with ODM by adding missing method.
2013-07-29 21:24:08 -04:00
Fabio B. Silva
1fbe1ffc5a
fix DDC-2579
2013-07-29 19:31:44 -04:00
Guilherme Blanco
a53fe14fa2
Merge pull request #717 from hackedd/patch-1
...
Allow query parameters starting with an underscore
2013-07-29 13:37:51 -07:00
Guilherme Blanco
2dd73d4def
Kept BC.
2013-07-29 10:46:47 -04:00
Guilherme Blanco
c28b457221
Modified Hydrators to be per-query instances instead of a singleton-like approach.
2013-07-28 20:30:42 -04:00
Marco Pivetta
d7881a1ec2
Merge pull request #733 from Lumbendil/master
...
Update Parser.php
2013-07-24 04:13:12 -07:00
Roger Llopart Pla
9b574ad53b
Update Parser.php
...
Fix the docummentation for Parser::Literal()
2013-07-24 13:07:06 +02:00
Austin Morris
1c8ae50557
do not initialize coll on add()
2013-07-22 18:54:02 -04:00
Austin Morris
6bae2eac29
Initialize coll when using Collection methods inside PersistentCollection
2013-07-22 14:42:03 -04:00
Marco Pivetta
4bc8f7be16
Merge pull request #728 from armetiz/patch-1
...
Color message like the update tools
2013-07-22 08:19:50 -07:00
Thomas Tourlourat
4882ff1ef5
Add info tag around ATTENTION
2013-07-22 17:11:53 +02:00
Nicolas Nutten
eba933bb47
To avoid "SpacingAfterParams" error with PHPCS Symfony2 coding standard
...
Hello,
I added two blank lines in comments two avoid the following error with PHPCS Symfony2 coding standard :
Error Code: SpacingAfterParams
Error Description: Last parameter comment requires a blank new line after it.
2013-07-22 10:56:18 +02:00
Thomas Tourlourat
0c3581a1f8
Color message like the update tools
2013-07-19 11:33:35 +02:00
Guilherme Blanco
fbbb161987
Merge pull request #719 from tristanlins/fix/entity-generator-extensibility
...
Access properties via static:: instead of self::.
2013-07-17 17:18:01 -07:00
Michaël Gallego
3f112db725
Allow to have non-distinct queries
2013-07-09 17:31:30 +02:00
Guilherme Blanco
78fc129614
Merge pull request #632 from Padam87/entgentrait
...
entity generator - ignore trait properties and methods
2013-07-07 12:37:55 -07:00
Tristan Lins
641774630b
Access properties via static:: instead of self::.
...
The properties of EntityGenerator are now protected instead of private.
But this does not make sense until they are accessed with static::.
Otherwise the templates cannot be overwritten within a sub class.
2013-07-05 13:40:57 +02:00
Paul
6aa58d9939
Allow query parameters starting with an underscore
2013-07-04 10:12:36 +02:00
Dave Hulbert
5e700db6d3
Fix grammar in CreateCommand
2013-07-02 16:29:36 +01:00
Dave Hulbert
c57f2c39f6
Fix grammar in DropCommand
2013-07-02 16:28:58 +01:00
Benjamin Eberlei
29d6da0fa0
Merge pull request #703 from shulcsm/patch-1
...
Clear visitedCollections
2013-06-30 01:38:02 -07:00
Sander Marechal
06ed21e883
Remove extra-lazy-get for ManyToMany relation
2013-06-27 14:19:39 +02:00
Sander Marechal
5635fa60a4
Check owning entitiy on extra lazy get with OneToMany relation
2013-06-27 14:17:41 +02:00
Benjamin Eberlei
a91050e7f4
[DDC-2350] Eager Collections are not marked as initialized, leading to multiple queries being executed.
2013-06-25 19:34:12 +02:00
Guilherme Blanco
20e5d98b7b
Merge pull request #640 from denkiryokuhatsuden/patch-1
...
[Paginator]Add hidden field ordering for postgresql
2013-06-24 19:23:36 -07:00
Guilherme Blanco
457036aacb
Merge pull request #702 from FabioBatSilva/DDC-2459
...
[DDC-2459]ANSI compliant quote strategy
2013-06-23 14:26:49 -07:00
Fabio B. Silva
1cff8b4d98
Fix DDC-2519
2013-06-21 16:07:09 -04:00
Fabio B. Silva
a165f63c8c
ANSI compliant quote strategy
2013-06-21 16:05:59 -04:00
Sander Marechal
2879162015
No need to lookup metadata
2013-06-20 14:00:58 +02:00
Sander Marechal
3b92cfac5a
Use find() if the indexBy field is the identifier
2013-06-20 13:45:38 +02:00
Sander Marechal
53c9ffda30
Get rid of variable
2013-06-20 10:20:16 +02:00
Sander Marechal
3555007f08
Return NULL for non-existent keys
...
The load() function already returns just one entity or NULL, so
the current() is not needed and the result can be returned directly.
2013-06-20 10:09:52 +02:00
Sander Marechal
523697d0b6
[DDC-1398] Extra-lazy get for indexed associations
...
If an association is EXTRA_LAZY and has an indexBy, then
you can call get() without loading the entire collection.
2013-06-20 09:29:56 +02:00
shulcsm
3340234785
Clear visitedCollections
...
Visited collections are cleared only in commit(). Commit clears up only if it actually has something to do. Processing large amounts of records without changing them cause visitedCollections to grow without any way of clearing.
2013-06-19 16:34:44 +03:00
Guilherme Blanco
7903a2b513
Merge pull request #695 from doctrine/RepositoryFactory
...
Implemented support for RepositoryFactory.
2013-06-14 09:19:43 -07:00
Guilherme Blanco
52b3fc1fc3
Updated since php doc tag.
2013-06-14 12:07:28 -04:00
Adam Prager
73e2aa54ef
moved php version check
2013-06-14 10:07:05 +02:00
Michaël Perrin
37d7df6ac4
Fix phpDoc syntax in ClassMetadataInfo.php
2013-06-14 11:00:17 +03:00
Guilherme Blanco
3488049c18
Reduced granularity of DefaultRepositoryFactory reference to ObjectRepository instances, in cases where consumers are completely rewrote EntityRepository.
2013-06-13 23:59:08 -04:00
Guilherme Blanco
a66fc03441
Reducing dependency on RepositoryFactory by providing EntityManager as a getRepository argument.
2013-06-13 23:53:53 -04:00
Guilherme Blanco
37e7e841c3
Fixed wrong interface.
2013-06-13 23:31:18 -04:00
Guilherme Blanco
7eb744126b
Implemented support for RepositoryFactory.
2013-06-13 21:47:40 -04:00
Fabio B. Silva
f16c8e3efe
Fix DDC-2478
2013-06-13 16:44:02 -04:00
Guilherme Blanco
6ef48561ba
Merge pull request #688 from sellingsource/master
...
Implement QuoteStrategy on SqlWalker walkRangeVariableDeclaration
2013-06-12 12:03:24 -07:00
Fabio B. Silva
c1e688fc81
drop useless support for associations
2013-06-12 10:30:51 -04:00
Fabio B. Silva
d961028b14
small optimization
2013-06-12 10:30:51 -04:00
Fabio B. Silva
d685f592fe
Fix DDC-2494
2013-06-12 10:30:51 -04:00
Guilherme Blanco
3d86c82a7f
DDC-2476 Better approach for reverse engineer. Some refactoring done to driver.
2013-06-12 02:00:36 -04:00
Guilherme Blanco
0d834d0bd4
DDC-2489 Added missing semicolon when dump-sql on schema update.
2013-06-12 00:31:25 -04:00
Dustin Thomson
529064aff2
Modified identity function to work with joined inheritance tables.
...
Added regression tests
2013-06-11 18:09:49 -06:00
Fabio B. Silva
710d0d1109
Fix DDC-1995
2013-06-07 17:24:05 -04:00
John Brown
4ef043fc3b
updating sql walker to use quote strategy in joins
2013-06-07 08:56:58 -07:00
John Brown
afb9c829e2
updating sql walker to use quote strategy in joins
2013-06-07 08:49:49 -07:00
John Brown
77b905eaa8
Implement QuoteStrategy on SqlWalker walkRangeVariableDeclaration
...
Based on:
http://www.doctrine-project.org/jira/browse/DDC-1845
cb72219b11
2013-06-06 15:08:22 -07:00
Fabio B. Silva
27511374ec
Fix DDC-2475
2013-06-04 23:50:43 -04:00
Grégoire Paris
a986fe013e
Explicitely state what the problem is
...
People like me think the problem is that there is no association
mapping, when the problem in fact could be that there also is a field
mapping on the property.
This message makes it clearer why we are getting an error message.
2013-06-03 12:07:08 +02:00
Benjamin Eberlei
f269ecc3ac
Bump dev version to 2.4.0
2013-05-27 21:47:16 +02:00
Benjamin Eberlei
6bc18402e2
Release 2.4.0-RC1
2013-05-27 21:47:16 +02:00
Alexander
66a842c143
[DDC-2471] Fix EQ/NEQ null handling of criteria
2013-05-26 09:04:19 +02:00
Benjamin Eberlei
20b5ab26e7
Merge pull request #669 from hason/many_to_many
...
Fixed generating column names for self referencing entity.
2013-05-25 22:16:48 -07:00
Torben
997f22fbb9
add shortcut for force
2013-05-20 10:06:11 +02:00
Gusakov Nikita
6bb3184dbf
fix bc
2013-05-18 02:40:18 +04:00
Gusakov Nikita
4c1869dca0
ready
2013-05-18 02:09:07 +04:00
Fabio B. Silva
f92214997f
[DDC-2435] Fix column name with numbers and non alphanumeric characters.
2013-05-17 13:02:46 -03:00
Fabio B. Silva
4d6cef1ff6
[DDC-2451] Fix entity listeners serialization
2013-05-17 11:42:11 -03:00
Martin Hasoň
bef5b585cb
Fixed generating join column names for self referencing entity.
2013-05-17 16:28:45 +02:00
Benjamin Eberlei
eb1a162cbc
Fix regression in DDC-2430.
2013-05-10 23:31:27 +02:00
Benjamin Eberlei
bf9673203c
Merge pull request #639 from goetas/indexby-metadata
...
Added abillity to use metacolumn as indexBy
2013-05-09 23:53:26 -07:00
Marco Pivetta
22c9f6ebec
applying required fixes for DDC-2432
2013-05-09 21:14:58 +02:00
Benjamin Eberlei
b53f4fd4cc
[DDC-2280] length attribute in <id> was not converted.
2013-05-09 18:15:41 +02:00
Benjamin Eberlei
1a0adecf29
[DDC-2335] Add note about filtering schema by regexp expression to relevant commands help output.
2013-05-09 16:24:19 +02:00
Benjamin Eberlei
6d5afb18bc
[DDC-2430] Prevent Criteria queries using the ID of an assocation on PersistentCollections, as the in-memory ArrayCollection does not work with this kind of query. Attention this is a BC-BREAK, that is necessary to fix potentially very hard to debug bugs. Therefore it is not merged back into 2.3
2013-05-09 13:24:36 +02:00
Benjamin Eberlei
7220c3c125
[DDC-2387] Fix DatabaseDriver not working with combinations of composite/association keys.
2013-05-09 12:10:37 +02:00
Benjamin Eberlei
86277def7e
Merge branch 'DDC-2437'
2013-05-09 11:03:21 +02:00
Benjamin Eberlei
e3b8ce7737
[DDC-2423] Fixed bug with EntityGenerator not generating fetch="" attribute in association annotations.
2013-05-09 10:55:12 +02:00
Benjamin Eberlei
acbafd081b
Add documentation to EntityManager about instantiation, decoration over inheritance, and some generic introduction.
2013-05-09 10:23:12 +02:00
Vladislav Vlastovskiy
33888f1b08
Swapped places indexBy and condition in accordance with EBNF
2013-05-09 03:30:48 +04:00
Benjamin Eberlei
c8bcdb4b61
Merge pull request #524 from lstrojny/feature/entity-manager-decorator
...
EntityManagerDecorator base class as an extension point for EntityManager
2013-05-04 06:02:39 -07:00
Benjamin Eberlei
8e8560b276
Merge pull request #537 from Powerhamster/joined-composite-keys
...
fixed problems with joined inheritance and composite keys
2013-05-04 05:59:02 -07:00
Benjamin Eberlei
5e19e1bed3
[DDC-2267] Allow EntityManager#flush($entity) to be called on entities scheduled for removal.
2013-05-04 13:38:30 +02:00
Benjamin Eberlei
6d02c7e1a5
[DDC-2136] Fix exporting to YAML and XML with assocation keys.
2013-05-01 23:10:13 +02:00
Benjamin Eberlei
0864ab8ada
[DDC-1998] Pass types to Connection#delete() to allow custom conversions to happen.
2013-05-01 20:30:45 +02:00
Benjamin Eberlei
131164b7f6
[DDC-1984] Throw exception if passing null into UnitOfWork#lock() - which can happen when EntityManager#find() tries to lock entity that was just deleted by another process.
2013-05-01 19:39:21 +02:00
Benjamin Eberlei
640a8e58c7
[DDC-2106] Fix entity as parameter value when its managed but not yet with identifier.
2013-05-01 18:46:41 +02:00
Benjamin Eberlei
6505c96ec4
Simplify condition of previous commit ( 5cdc73e
)
2013-05-01 10:58:44 +02:00
Benjamin Eberlei
760aaa67c4
Merge pull request #655 from FabioBatSilva/DDC-2409
...
[DDC-2409] Fix merge association STATE_NEW
2013-05-01 01:49:25 -07:00
Benjamin Eberlei
1f08acb576
[DBAL-483] Pass default values to DBAL mapping layer correctly to fix default comparision bug.
2013-05-01 10:42:28 +02:00
Fabio B. Silva
5cdc73e13b
Fix DDC-2409
2013-04-28 16:54:44 -03:00
Fabio B. Silva
7c2da2d5b8
Fix DDC-2415
2013-04-26 16:11:04 -03:00
EuKov
99ec4dc72c
Fixed typo in SQLFilter (use statement ClassMetadata)
2013-04-23 20:46:19 +03:00
Benjamin Eberlei
92b41e017a
[DDC-2407] Fix missing support for UUID and CUSTOM id generators in Exporter
2013-04-20 10:25:36 +02:00
Benjamin Eberlei
52b2e066c5
Merge pull request #611 from stefankleff/fix-eagerloading
...
Fixed typo in hints. Caused slow loading of eager entities.
2013-04-14 00:43:42 -07:00
Raymond Kolbe
4bafcc5b31
Fix Oracle subquery ordering
...
See http://www.doctrine-project.org/jira/browse/DDC-1800 and http://www.doctrine-project.org/jira/browse/DDC-1958#comment-19969
2013-04-09 17:30:54 -03:00
Raymond Kolbe
b8b7afe576
Fix Oracle subquery ordering lost bug
...
See http://www.doctrine-project.org/jira/browse/DDC-1800 for a full description.
2013-04-09 17:00:06 -03:00
Stefan Kleff
e561f47cb2
Added constant
2013-04-08 11:27:22 +02:00
Benjamin Eberlei
cef20890dc
Merge pull request #616 from FabioBatSilva/DDC-2252
...
[DDC-2252] Fix delete many-to-many composite key
2013-04-06 10:37:16 -07:00
Benjamin Eberlei
fe238d03c8
Merge pull request #618 from FabioBatSilva/DDC-2188
...
[DDC-2188] Fix arithmetic priority
2013-04-06 07:56:36 -07:00
Pascal Borreli
30b050b44c
Fixed typos
2013-04-06 14:31:27 +00:00
Benjamin Eberlei
64b2ecfefc
[DDC-2224] Rewrite instanceof feature with parameter needle ClassMetadata breaks caching of queries.
2013-04-04 20:22:48 +02:00
Adam Prager
3b7b457d35
minor fixes
2013-04-04 20:07:21 +02:00
denkiryokuhatsuden
7af84e79e5
Fixed postgresql hidden scalar sort
2013-04-03 17:22:31 +09:00
denkiryokuhatsuden
786d904328
Revert "Add hidden field ordering for postgresql"
...
This reverts commit 3e8796f781
.
2013-04-03 17:14:31 +09:00
denkiryokuhatsuden
3e8796f781
Add hidden field ordering for postgresql
...
In postgresql environment, when some hidden fields are used in orderBy clause,
they're not property added because $rsm->scalarMappings don't have information about them.
2013-04-02 18:54:55 +09:00
Asmir Mustafic
6fc18e330d
indexby metadata column
2013-04-02 10:04:15 +02:00
Adam Prager
937ba6385e
fixed code duplication issue
2013-03-31 00:47:24 +01:00
Benjamin Eberlei
9613f1d8cb
[DDC-93] Rename ReflectionProxy to ReflectionEmbeddedProperty, Add DQL test with Object and Array Hydration.
2013-03-27 21:45:16 +01:00
Adam Prager
9797177193
check if ReflectionClass::getTraits() method exists
2013-03-27 02:48:35 +01:00
Benjamin Eberlei
011776f02f
[DDC-93] Add some TODOs in code.
2013-03-27 00:18:21 +01:00
Benjamin Eberlei
0204a8b69a
[DDC-93] Implement first working version of value objects using a ReflectionProxy object, bypassing changes to UnitOfWork, Persisters and Hydrators.
2013-03-27 00:10:30 +01:00
Benjamin Eberlei
32988b3cdf
[DDC-93] Parse @Embedded and @Embeddable during SchemaTool processing to make parsing work.
2013-03-26 21:45:15 +01:00
Adam Prager
8898c91dfc
only check for traits when class exists
2013-03-26 21:28:09 +01:00
Adam Prager
8e3e2e770a
Revert "only use already existing reflections"
...
This reverts commit bb5bdcf0f4
.
2013-03-26 21:17:59 +01:00
Adam Prager
bb5bdcf0f4
only use already existing reflections
2013-03-26 21:14:52 +01:00
Adam Prager
521276f1ed
entity generator - ignore trait properties and methods
2013-03-26 20:52:57 +01:00
Marco Pivetta
7afe5af73a
Fix for DDC-2359
2013-03-24 19:42:50 +01:00
Jan Hruban
3866472459
Import EntityManager in ConsoleRunner
2013-03-21 15:49:00 +01:00
Fabio B. Silva
39ea24675d
Fix DDC-2090
2013-03-17 16:59:33 -03:00
Benjamin Eberlei
a7d764f6c0
Moved tools to Advanced topic, included simple setting up tools in Installation. Reworked CLI tool to print a template when no cli-config.php is defined.
2013-03-17 12:16:42 +01:00
Fabio B. Silva
685c96a1b9
Fix arithmetic priority
2013-03-16 14:33:19 -03:00
Fabio B. Silva
1effd38043
Fix DDC-2252
2013-03-16 01:15:54 -03:00
Benjamin Eberlei
559303430a
[DDC-1666] Fix bug where orphan removal on one-to-one associations lead to unique constraint errors when replacing an entity with a new one.
2013-03-14 23:41:31 +01:00
Benjamin Eberlei
d0419782bd
[DDC-2300] Fix version xml mapping and serialization of ClassMetadata.
2013-03-14 23:20:23 +01:00
Benjamin Eberlei
4982e2b6b0
Merge pull request #593 from norzechowicz/hydrator-fix
...
Fix SimpleObjectHydrator behavior when column not exists in fieldMappings, relationMappings and metaMappings
2013-03-14 14:58:52 -07:00
Benjamin Eberlei
eca468b9d1
[DDC-2340] Fix bug with dirty collection matching + ordering.
2013-03-12 22:49:30 +01:00
Rajesh Sharma
4841a068be
[DDC-2304] accept more than 2 parameters in CONCAT function
...
- Tested and parser validates at least 2 parameters given
- test added for CONCAT function and indentation fixed
- calling getConcatExpression using call_user_func_array as number of arguments is not known removing dependency to patch DBAL
- maintaining backward compatibility
2013-03-12 19:59:45 +01:00
Benjamin Eberlei
fc86a31c10
Merge pull request #591 from Aitboudad/master
...
Remove dead code
2013-03-12 11:52:23 -07:00
Benjamin Eberlei
ba4705176e
Merge pull request #601 from jankramer/add-contains-comparison
...
Add 'contains' comparison
2013-03-12 11:38:18 -07:00
Jean-Guilhem Rouel
8b8d1a5aaa
Don't add empty expression to another one
2013-03-12 19:17:11 +01:00
Benjamin Eberlei
3ba0562006
Merge branch 'GH-572'
2013-03-12 19:04:27 +01:00
Norbert Orzechowicz
6a69b4700c
[DDC-2282] Fix pagination problem with SQL Server.
...
ORDER BY removed from all count queries when on SQL Server
Fixed SQLServer ORDER BY problem in paginator CountOutputWalker
Added test to check query with ORDER BY and SQLServerPlatform
2013-03-12 19:03:27 +01:00
Stefan Kleff
d937d1fc82
Fixed typo in hints. Caused slow loading of eager entities.
2013-03-12 16:17:14 +01:00
Pascal Borreli
87e06993d6
Fixed typo
2013-03-11 00:31:50 +00:00
Pascal Borreli
a2cd0f5804
Fixed typos
2013-03-11 00:08:58 +00:00
Jan Kramer
760623346c
Added 'contains' comparison
2013-03-07 13:32:56 +01:00
Lars Strojny
acc8b61cd1
Adding EntityManagerDecorator base class as an extension point for EntityManager
2013-03-06 23:30:47 +01:00
Johannes M. Schmitt
b4b9709090
adds a new output format
2013-03-03 11:01:43 +01:00
MDrollette
1846f5845c
alias the proxy class on import to avoid "already exists" error
2013-03-01 11:58:51 -06:00
Vladislav Veselinov
30fd22a260
Use inflector for add/remove methods
2013-02-28 21:05:41 +02:00