Guilherme Blanco
161ae31a7e
Adde more BC compatibility in setParameters.
2012-05-29 14:41:32 -04:00
Guilherme Blanco
b3e7493278
Made setParameters()/excute()/iterate() BC compatible.
2012-05-29 14:25:54 -04:00
Guilherme Blanco
79ff1f10d2
Optimized getParameter.
2012-05-28 12:20:35 -04:00
Guilherme Blanco
1635e0af4b
[DDC-1840] Implemented parameters as a collection.
2012-05-28 12:16:42 -04:00
Benjamin Eberlei
1f2ce21b56
[DDC-1497] Change EntityGenerator add method generation for collections.
2012-05-27 20:31:01 +02:00
Benjamin Eberlei
04b23dbf10
[DDC-1798] Exporter generate error when composite primary key is generated. Fixes GH-342
2012-05-27 18:44:31 +02:00
Benjamin Eberlei
3398d1e287
[DDC-1685] Fix bug in OutputWalker when used on entities with Foreign Key as Primary Key.
2012-05-27 18:33:35 +02:00
Benjamin Eberlei
6523f7f59e
[DDC-1777] Fix bug in BasicEntityPersister#exists() when no primary key is set.
2012-05-27 17:11:21 +02:00
Benjamin Eberlei
f55b5411c8
[DDC-1791] Fix OutputWalker Pagination on Oracle
2012-05-27 13:22:48 +02:00
Benjamin Eberlei
44c867827c
[DDC-1783] Fix memory leak in ObjectHydrator when using AbstractQuery#iterate() and EntityManager#clear()
2012-05-27 12:00:43 +02:00
Karsten Dambekalns
bcddc47356
[DDC-1835] Fix cloning persistent collections.
2012-05-27 10:17:12 +02:00
Benjamin Eberlei
548c997f7b
[DDC-1799] Fix bug in YamlExporter using OneToOne instead of ManyToOne
2012-05-27 09:57:46 +02:00
Benjamin Eberlei
0868ec1c19
Update Common and fix cache tests with different assumptions about keys.
2012-05-26 19:29:51 +02:00
Benjamin Eberlei
70458b2f48
LGPL => MIT
2012-05-26 14:37:00 +02:00
Guilherme Blanco
f54f8f8a95
Fixed anomalous bug of temporary existance table collision in case of any update/delete issue by dropping temp table, no matter what's the result of other executes.
2012-05-23 00:55:05 -04:00
Benjamin Eberlei
e2d15c3a04
Merge pull request #353 from pscheit/patch-1
...
prevent the validator to stop with an "undefined array index"-error
2012-05-22 10:09:01 -07:00
Benjamin Eberlei
f686a3ac1b
Merge pull request #354 from pscheit/master
...
ValidateSchemaCommand dont't call exit() in execute()
2012-05-22 10:03:44 -07:00
Philipp Scheit
e9f936c0ba
don't call exit() in execute()
2012-05-22 14:25:54 +03:00
Guilherme Blanco
d05ad996c4
Implemented support for internal exception showing DQL that contains syntax or semantical error.
2012-05-21 16:34:27 -04:00
Philipp Scheit
f1571aeac3
prevent the validator to stop with an "undefined array index"-error while validating a wrong inversedBy Attribute
2012-05-21 19:23:22 +03:00
Fabio B. Silva
0af5da77f1
fix DDC-1822
2012-05-19 13:40:01 -03:00
Fabio B. Silva
e9974911fe
fix tests
2012-05-04 21:13:20 -03:00
Fabio B. Silva
67f0722211
change test to uses data provider
2012-05-04 21:13:19 -03:00
Fabio B. Silva
790d98133c
fix DDC-1694
2012-05-04 21:11:51 -03:00
Benjamin Eberlei
bd41e69a1f
Merge DDC-1542 into master
2012-05-04 23:20:57 +02:00
Benjamin Eberlei
99e303e211
[DDC-1542] Refactored automatic discriminator map detection.
2012-05-04 23:15:12 +02:00
Guilherme Blanco
6103db0d04
Merge pull request #345 from hason/DDC-1802
...
Fixed DDC-1802
2012-05-04 13:04:08 -07:00
comfortablynumb
f0db9a842d
[DDC-1542] - Inheritance: Added default discriminator map (only annotations yet)
2012-05-04 20:36:24 +02:00
Benjamin Eberlei
63b2c03a02
Merge pull request #331 from gedrox/DDC-1757
...
DDC-1757 test and patched query builder
2012-05-04 10:08:59 -07:00
Benjamin Eberlei
e09a9c7deb
Merge pull request #315 from Ocramius/getclass-on-proxies-refactoring
...
Allowing proxies to be passed to ORM public API
2012-05-04 10:04:14 -07:00
Alexander
37ce0f15d6
Update test case for MappingException::invalidCascadeOption()
2012-05-04 18:26:17 +02:00
Alexander
3403305b3d
Merge remote-tracking branch 'schmittjoh/betterExMessage'
2012-05-04 18:20:56 +02:00
Guilherme Blanco
5fddd1bee5
Merge pull request #324 from brikou/call_simplified
...
simplified Doctrine/ORM/EntityRepository::__call
2012-05-03 23:20:13 -07:00
Martin Hasoň
3d852397db
DDC-1802 removed unnecessary tokens T_SIZE and T_MOD
2012-05-02 19:10:21 +02:00
Martin Hasoň
3ab6ad23ad
DDC-1802 fixed parsing: FunctionDeclaration "NOT" ("LIKE" | "IN" | "BETWEEN")
2012-05-02 19:08:27 +02:00
Fabio B. Silva
5c7d7c6f05
remove duplicated 'require_once'
2012-04-21 01:53:34 -03:00
Fabio B. Silva
56fb1035de
update docblock
2012-04-21 01:43:18 -03:00
Fabio B. Silva
f63cb95ef3
add annotations
2012-04-21 01:43:18 -03:00
Fabio B. Silva
85790f0752
support for attribute override
2012-04-21 01:43:18 -03:00
Fabio B. Silva
4df3c75321
added missing '\'
2012-04-21 01:41:05 -03:00
Fabio B. Silva
3085c52f95
fix docblock and remove white spaces
2012-04-21 01:41:04 -03:00
Fabio B. Silva
9e010cbd34
added xml/yml drivers
2012-04-21 01:41:04 -03:00
Fabio B. Silva
30fdf8dd1b
added support for @AssociationOverride
2012-04-21 01:38:34 -03:00
Aigars Gedroics
3ddc461d30
[DDC-1757] Fix moved to private method, test improved.
2012-04-20 16:06:21 +03:00
gedrox
29a94f4f52
Parameter PHP documentation for the QueryBuilder::getRootAlias() method
2012-04-20 16:06:21 +03:00
Aigars Gedroics
a1ab3e8cf4
DDC-1757 test and patched query builder
2012-04-20 16:06:21 +03:00
Fabio B. Silva
9b02745cd8
Fix DDC-1784
2012-04-18 20:39:21 -03:00
Guilherme Blanco
bad811df6a
Merge pull request #293 from FabioBatSilva/DDC-1663
...
[DDC-1663]Native SQL Query Result Set Mappings
2012-04-16 12:06:26 -07:00
Benjamin Eberlei
4b09712761
Merge pull request #322 from rande/patch-1
...
In some weird situation the SimpleXmlIterator used to iterate on the ``$...
2012-04-16 09:55:05 -07:00
Benjamin Eberlei
193ac077d6
Merge pull request #316 from fixe/patch-1
...
Fixes autoloading of generated Annotations
2012-04-16 09:48:50 -07:00
Tim Nagel
6cbdf53975
Fixed DDC1778
2012-04-16 13:03:19 +10:00
Fabio B. Silva
f8b1915efd
named native query inheritance
2012-04-15 15:40:43 -03:00
Fabio B. Silva
52c49b444e
test multiple entity results
2012-04-15 15:40:43 -03:00
Fabio B. Silva
b49180875c
yml driver
2012-04-15 15:40:42 -03:00
Fabio B. Silva
531eb68d56
xml driver
2012-04-15 15:40:41 -03:00
Fabio B. Silva
fdc9fdae3e
refactory ResultSetMappingBuilder#addNamedNativeQueryMapping into small submethods
2012-04-15 15:40:41 -03:00
Fabio B. Silva
68665af6e8
test discriminator column
2012-04-15 15:40:41 -03:00
Fabio B. Silva
0cc2583a02
test scalar result
2012-04-15 15:40:40 -03:00
Fabio B. Silva
f813223036
test joined one-to-many and one-to-one
2012-04-15 15:40:40 -03:00
Fabio B. Silva
f018a56d6d
test native query with result class
2012-04-15 15:40:40 -03:00
Fabio B. Silva
3b79951824
mapping driver tests
2012-04-15 15:40:40 -03:00
Fabio B. Silva
015ea809b0
added support for resultClass and empty fields
2012-04-15 15:39:22 -03:00
Fabio B. Silva
bfc7986b20
annotation driver and basic support
2012-04-15 15:39:22 -03:00
Fabio B. Silva
2b996128af
sql result set mapping metadata
2012-04-15 15:39:22 -03:00
Fabio B. Silva
91e4702772
named native query metadata
2012-04-15 15:39:22 -03:00
Fabio B. Silva
530e4840dd
native query annotations
2012-04-15 15:39:21 -03:00
Marco Pivetta
cb7a77cc03
Removing usage of ClassUtil where not strictly needed
...
Optimizing the ClassMetadataFactory API instead and using ClassMetadata to check actual class names as da962f2e and c27b4de0 introduced too much overhead
2012-04-07 18:53:34 +02:00
Marco Pivetta
d1e868a32a
Removing registration of proxy ClassMetadata by the proxyFactory
...
Ensuring that functionality is kept by checking for the real class name in the ClassMetadataFactory
2012-04-07 18:53:34 +02:00
Marco Pivetta
c4a2eaea49
Adding additional missing calls to classutils instead of get_class
2012-04-07 18:53:34 +02:00
Marco Pivetta
cbe4987e18
Using Doctrine\Common\Util\ClassUtil for class_name resolutionThis avoids exceptions when passing a Proxy instance to the public API of the EntityManager, ClassMetadataFactory or UnitOfWork when the Proxy itself isn't generated by the EntityManager itself, while discovering the correct ClassMetadata instance for the proxy
2012-04-07 18:53:33 +02:00
Benjamin Eberlei
de26952e29
[DDC-1534] YamlDriver wrongly used "inversedBy" inside join table condition although its independent.
2012-04-07 10:42:54 +02:00
Benjamin Eberlei
d54fdf43d0
[DDC-1771] Abstract classes cannot be proxies and should be skipped in complete generation.
2012-04-07 10:30:09 +02:00
Benjamin Eberlei
a1a9f85fda
Merge pull request #328 from Netpositive/master
...
addDiscriminatorMapClass fix
2012-04-07 00:44:29 -07:00
Benjamin Eberlei
d6ccd82cf6
Merge pull request #321 from import/feature/newCacheDriver
...
Addition for new cache driver
2012-04-07 00:20:55 -07:00
Benjamin Eberlei
0b3577f2d2
[DDC-1766] Rewrite getHydrationCacheId() to use existing processParameterValue() method. Other code style changes.
2012-04-05 22:40:40 +02:00
Johannes M. Schmitt
84ec6dc9f5
improved exception message
2012-04-04 21:47:23 -05:00
Benjamin Eberlei
1095fb39cb
[DDC-1766] More cleanups
2012-04-05 00:27:23 +02:00
Benjamin Eberlei
f7496b1482
[DDC-1766] Cleaned up code.
2012-04-05 00:26:09 +02:00
Benjamin Eberlei
d31c7f5e2b
[DDC-1766] Explain details of Hydration cache, introduce AbstractQuery#setResultCacheProfile method
2012-04-04 23:55:14 +02:00
Benjamin Eberlei
c32a77e6be
[DDC-1766] Add usage of default result cache driver, add more docs.
2012-04-04 23:47:32 +02:00
Benjamin Eberlei
306f9e0ca2
[DDC-1766] Rename closure
2012-04-04 23:21:06 +02:00
Benjamin Eberlei
3047c4b955
[DDC-1766] Initial implementation of hydration cache.
2012-04-04 23:10:30 +02:00
Somfai Mátyás
a2fd4eca37
Fixing a bug when calling setDiscriminatorMap from multiple sources (ie: from Events::loadClassMetadata and annotation).
2012-04-04 14:49:34 +02:00
Brikou CARRE
029071a144
simplified __call method
2012-04-03 17:33:00 +02:00
Thomas
5005bbe62b
In some weird situation the SimpleXmlIterator used to iterate on the `$xmlRoot->field
property just get resetted. This solution avoid this situation. This problem occurs when Symfony2 warms up cache with autogenerate proxy to
true
`
2012-04-02 14:55:35 +03:00
Osman Üngür
e69b022472
Fixed CS
2012-04-02 12:11:38 +03:00
Osman Üngür
4fc7389b1d
New cache driver definition for Doctrine running in non-dev mode and cache driver is not set.
...
This cache driver was added with doctrine/common#109
2012-04-02 11:57:09 +03:00
Benjamin Eberlei
5b18718b92
[DDC-1746] Throw exception on invalid cascade option.
2012-04-01 11:01:58 +02:00
Tiago Ribeiro
975f3c4600
Fixes autoloading of generated Annotations
2012-04-01 02:59:03 +02:00
Benjamin Eberlei
c5c3719e79
Revert GH-311
2012-03-30 22:00:45 +02:00
Benjamin Eberlei
04a4f2fc24
Merge pull request #310 from FabioBatSilva/DDC-889
...
[DDC-889] Mention parent class for debugging purposes.
2012-03-30 12:55:49 -07:00
Ben Lumley
7a5ae3a1a2
Support for default attribute in yaml mappings.
2012-03-28 22:01:57 +02:00
Guilherme Blanco
2811d161bb
Merge pull request #309 from FabioBatSilva/DDC-1686
...
Fix DDC-1686
2012-03-25 21:33:43 -07:00
Fabio B. Silva
6d1209c06d
fix typo
2012-03-26 01:03:32 -03:00
Fabio B. Silva
67af9f1853
change comparison
2012-03-26 00:55:57 -03:00
Fabio B. Silva
d6809773db
mention parent classes for identifier required exception.
2012-03-25 13:34:52 -03:00
Fabio B. Silva
449d8a66ad
changed modifiers
2012-03-25 13:00:50 -03:00
Fabio B. Silva
f591e428c3
mention parent classes when not is a entity or mapped super class.
2012-03-25 12:54:09 -03:00
Fabio B. Silva
0f9afbdf0a
Fix DDC-1686
2012-03-25 00:30:58 -03:00
Fabio B. Silva
df8626b949
Fix DDC-1697
2012-03-24 22:50:54 -03:00
Benjamin Eberlei
ab15528fde
Fix CS: AS => as in foreach loops.
2012-03-24 11:16:32 +01:00
Hugo Hamon
16da74d1da
[Query] removed unused private _peekBeyond() method from Parser class.
2012-03-24 11:07:44 +01:00
Hugo Hamon
c0620bf857
[Tools] removed unused local variable $assocName in ResolveTargetEntityListener class.
2012-03-24 11:07:41 +01:00
Hugo Hamon
ffa372a76c
[Tools] removed unused local variable in YamlExporter class.
2012-03-24 11:07:41 +01:00
Hugo Hamon
505537d4ce
[Tools] renamed AS to as in EntityGenerator class.
2012-03-24 11:07:41 +01:00
Hugo Hamon
68806aa8c6
[Tools] removed unused local variable $idHash in DebugUnitOfWorkListener class and renamed AS keywords to as.
2012-03-24 11:07:41 +01:00
Hugo Hamon
aca1470e6b
[Tools] removed unused local variable $cm in InfoCommand class.
2012-03-24 11:07:40 +01:00
Hugo Hamon
5a1c1e55ef
[Query] removed unused local variables in Parser class.
2012-03-24 11:07:39 +01:00
Hugo Hamon
43eebe1a8b
[Query] removed unused local variable $lexer in SizeFunction class.
2012-03-24 11:07:39 +01:00
Hugo Hamon
19602d0a26
[Query] removed unused local variable $platform in IdentityFunction class.
2012-03-24 11:07:39 +01:00
Hugo Hamon
c4dcd39666
[Proxy] renamed AS to as.
2012-03-24 11:07:39 +01:00
Hugo Hamon
d09b733cc3
[Persisters] removed unused local variable in ManyToManyPersister class.
2012-03-24 11:07:39 +01:00
Hugo Hamon
d4bcbd4741
[Persisters] removed unused local variables in BasicEntityPersister class.
2012-03-24 11:07:39 +01:00
Hugo Hamon
74f52a055e
[Mapping] removed unused local variable $fileName in StaticPHPDriver class.
2012-03-24 11:07:39 +01:00
Hugo Hamon
155c24772a
[Mapping] removed unused local variables $versionAnnot and $tblGeneratorAnnot in AnnotationDriver class.
2012-03-24 11:07:39 +01:00
Hugo Hamon
a3d8207578
[Mapping] removed unused local variable $field in ClassMetadataInfo class.
2012-03-24 11:07:35 +01:00
Hugo Hamon
beae0865db
[Mapping] removed unused local variable $fieldName in ClassMetadataFactory class.
2012-03-24 11:07:35 +01:00
Benjamin Eberlei
29318e183c
[DDC-1723] Fix missing serialitation for custom generator definition.
2012-03-22 23:07:00 +01:00
Benjamin Eberlei
18e63f9cea
Merge branch 'DDC-1723'
2012-03-22 22:30:35 +01:00
Benjamin Eberlei
bc4cf21c9d
Merge velovint/SupportCustomIdGenerators
2012-03-22 22:29:15 +01:00
Benjamin Eberlei
7d7edbbd4a
Merge pull request #288 from FabioBatSilva/DDC-775
...
DDC 775
2012-03-22 14:00:48 -07:00
Benjamin Eberlei
3aba23ea35
Merge pull request #304 from doctrine/feature/flush-many-documents
...
Allow flushing of many entities by passing an array of entities.
2012-03-22 12:34:01 -07:00
Fabio B. Silva
9cee329407
Fix CS
2012-03-15 22:38:54 -03:00
Fabio B. Silva
36dc560533
Fix DDC-1470
2012-03-15 21:29:52 -03:00
Jonathan H. Wage
24e808844b
Allow flushing of many entities by passing an array of entities.
2012-03-15 17:45:25 -05:00
Guilherme Blanco
44d7d23e8d
Coding style fixes.
2012-03-15 01:26:06 -04:00
Guilherme Blanco
a16ca32981
Coding style fixes.
2012-03-15 01:15:47 -04:00
Guilherme Blanco
c3291f8f24
Coding style fixes.
2012-03-15 01:13:14 -04:00
Guilherme Blanco
c65b22eadf
Coding style fixes.
2012-03-15 01:08:28 -04:00
Guilherme Blanco
2a399312f7
Coding style fixes.
2012-03-15 01:03:01 -04:00
Guilherme Blanco
666ae8f1b7
Coding style fixes.
2012-03-15 01:00:29 -04:00
rivaros
9c4e52c136
Convention fix
2012-03-14 21:38:56 +01:00
Rivaros
b346f1901a
convention fixes #2
2012-03-14 21:38:50 +01:00
Rivaros
df82b6060b
Convention fixes
2012-03-14 21:38:43 +01:00
Rivaros
06eed4cfda
Primary Keys as Foreign Keys - reverse engineering
2012-03-14 21:38:33 +01:00
Benjamin Eberlei
de5e4b0fdc
[DBAL-1692] Throw exception if table has no primary key instead of fatal error.
2012-03-14 21:09:48 +01:00
Benjamin Eberlei
18f1d56b60
[DDC-1683] Fix bug with booleans not handled by Expr#literal() in query builder.
2012-03-14 20:49:25 +01:00
Benjamin Eberlei
9b4d60897d
[DDC-1698] Add autoloader especially for the non PSR-0 Proxy class names. This is necessary when you want to deserialize your proxy classes from the session.
2012-03-14 20:03:17 +01:00
Fabio B. Silva
84b31714a6
fix indentation
2012-03-12 22:07:43 -03:00
Fabio B. Silva
e46275e80d
remove case expressions and functions support
2012-03-12 20:26:40 -03:00
Fabio B. Silva
797c9cf70e
supports simple math operator
2012-03-12 20:26:39 -03:00
Fabio B. Silva
df0632258a
Order by clause support case expressions
2012-03-12 20:26:38 -03:00
Fabio B. Silva
ce9643bce1
Order by clause support functions
2012-03-12 20:26:38 -03:00
Klein Florian
ac1ffaf7e9
make merge copy non persited properties too
2012-03-12 23:18:56 +01:00
Maarten de Keizer
33c5f4f678
Fix comments
2012-03-12 12:32:33 +01:00
Maarten de Keizer
0a835609fa
UUID id generator
2012-03-12 12:32:33 +01:00
Benjamin Eberlei
3788d0e815
Merge pull request #298 from sandermarechal/paginate-sql-walkers
...
Pagination using SQL walkers
2012-03-12 01:04:34 -07:00
Sander Marechal
53ff312936
Renamed *SqlWalker to *OutputWalker
2012-03-12 08:33:35 +01:00
Guilherme Blanco
7954386705
DDC-1696 Allowed Strings to be used inside of Case expressions. It seems this fixes other misterious use cases not yet identified by us.
2012-03-11 21:14:08 -04:00
Benjamin Eberlei
0a78f7bc11
[DDC-1695] Fix bug in SQL Walker array hydration with escaped fields.
2012-03-11 23:27:51 +01:00
Benjamin Eberlei
4dd296f9ca
Merge pull request #299 from patrick-mcdougle/patch-1
...
Fixed comment for createQuery to include the variable name.
2012-03-11 14:49:43 -07:00
Alexander
3faa1a78c2
[DDC-1426] sizeof() -> count() + added tests
2012-03-11 22:32:30 +01:00
Martin Pöhlmann
39ad87650e
findByXXX/findOneByXXX does now also accept orderBy, limit and offset args
...
Conflicts:
lib/Doctrine/ORM/EntityRepository.php
2012-03-11 22:32:30 +01:00
Benjamin Eberlei
79d9c07652
[DDC-1693] Fix fatal errors in DQL when using Optimistic or None lock modes. Added tests.
2012-03-11 22:29:20 +01:00
Sander Marechal
ad871e8b26
Cleaned up use
statements
2012-03-08 09:41:35 +01:00
Sander Marechal
d2501a9e4a
Throw exception when using the CountWalker with a HAVING query
2012-03-07 08:42:09 +01:00
patrick-mcdougle
7798c94a40
Fixed comment for createQuery to include the variable name.
2012-03-06 14:18:18 -06:00
Sander Marechal
edd5d14b06
Pagination using SQL walkers
...
A CountSqlWalker and LimitSubquerySqlWalker have been implemented. By
default the Paginator will use these SQL walkers. When a query already
uses custom SQL walkers, the Paginator will fall back to the existing
TreeWalker implementations. Improvements:
* Support for more complex DQL queries using named mixed results with
GROUP BY and HAVING. For example:
SELECT g, u, COUNT(u.id) AS userCount
FROM Entity\Group g LEFT JOIN g.users u
GROUP BY g.id
HAVING userCount > 0
* Support for entities with composite primary keys in the CountSqlWalker
and LimitSubquerySqlWalker. Only the WhereInWalker still needs to be
updated for full composite primary key support. But someone smarter
than me needs to look at that and figure out how to build a WHERE IN
query that can select rows based on multiple columns.
2012-03-06 16:24:44 +01:00
Brikou CARRE
e130df4f42
According to "Doctrine's implicit CS" and "Symfony's implicit CS" an empty line added to the end of the file (...same tweaks like the one pushed for the entity generator)
2012-03-04 09:43:52 +01:00
Guilherme Blanco
1a192b6530
Moved SQRT function to Platform.
2012-03-03 23:10:56 -05:00
Benjamin Eberlei
794b4ef09c
[DDC-1668] Fix problem with the is_int fowards compatibility check. Its not really necesssary anymore, we should remove this code in the future.
2012-03-03 22:24:51 +01:00
Benjamin Eberlei
9cddaf3075
Merge pull request #256 from F5/many_to_many_listeners
...
When using a ManyToMany relationship no listener is notified about any change to the owning entity
2012-03-03 13:13:09 -08:00
Guilherme Blanco
bf80ee6a30
[DDC-1673] Fixed unused in ProxyFactory.
2012-03-03 13:16:26 -05:00
Guilherme Blanco
a47e566382
[DDC-1667] Removed implicit obligation to define an Index and UniqueConstraint name. It is optional, but Annotations Driver was broken if not defined.
2012-03-03 13:05:11 -05:00
Benjamin Eberlei
1447884fde
Merge pull request #295 from brikou/patch-1
...
According to "Doctrine's implicit CS" and "Symfony's implicit CS" an emp...
2012-03-03 04:23:50 -08:00
Brikou CARRE
cb2c71b16a
According to "Doctrine's implicit CS" and "Symfony's implicit CS" an empty line added to the end of the file
2012-03-02 09:57:24 +01:00
Jeremy Mikola
3d0e87bca9
Fix typo in LifecycleEventArgs::getEntity() docs
2012-03-01 17:03:46 -05:00
Guilherme Blanco
48dcee9d60
[DDC-1616] Removed non-SQL message and improve exportability of SchemaTool CreateCommand.
2012-02-22 01:19:01 -05:00
Vitali Yakavenka
78d3f647ff
Merge branch 'master' of git://github.com/doctrine/doctrine2 into SupportCustomIdGenerators
2012-02-21 09:45:16 +03:00
Benjamin Eberlei
1bbd52b8ee
[DDC-1652] Fix SqlWalker to include foreign key identifiers in SQL SELECT statement no matter what the meta column setting is suggesting.
2012-02-20 17:48:34 +01:00
Benjamin Eberlei
dbd646b2de
[DDC-1649] Fix notice by last commit.
2012-02-20 15:55:19 +01:00
Benjamin Eberlei
502585bf40
[DDC-1649] Add additional check for not allowed mapping of dependent association keys.
2012-02-20 15:55:18 +01:00
Benjamin Eberlei
af07bd7818
Merge pull request #273 from smoya/master
...
No unique join column fields for Single Table inheritance type.
2012-02-20 06:55:00 -08:00
Benjamin Eberlei
68436fee75
[DDC-1654] Add support for orphanRemoval on ManyToMany associations. This only makes sense when ManyToMany is used as uni-directional OneToMany association with join table. The join column has a unique constraint on it to enforce this on the DB level, but we dont validate that this actually happens. Foreign Key constraints help prevent issues and notify developers early if they use it wrong.
2012-02-20 10:33:16 +01:00
Benjamin Eberlei
35764c2402
[DDC-1659] Remove read only marker when clearing entities.
2012-02-20 09:36:35 +01:00
Benjamin Eberlei
5d352389b7
Merge pull request #270 from bmichotte/master
...
Fluent interface and relations
2012-02-20 00:24:07 -08:00
Benjamin Eberlei
f040ed0cf0
Merge pull request #287 from goetas/nullable
...
Nullable assocations for entity generator
2012-02-19 15:30:17 -08:00
Benjamin Eberlei
bd1bc07270
[DDC-1651] Convert entities as parameters early in setParameter() to avoid them being part of result cache strings, which causes non-uniqueness.
2012-02-18 16:07:55 +01:00
Benjamin Eberlei
9fc1d85e8d
[DDC-1643] Fix bugs when cloning PersistentCollection and re-using it.
2012-02-18 00:42:21 +01:00
Benjamin Eberlei
d995c6dbdc
[DDC-1655][DDC-1650][DDC-1556] Fix issues with @postLoad Callback being not fired, or fired multiple times.
2012-02-17 23:27:16 +01:00
Asmir Mustafic
d1b2dabc0f
nullable assoc
2012-02-15 12:43:55 +01:00
Guilherme Blanco
e6b99c2059
Merge pull request #283 from FabioBatSilva/DDC-807
...
Fix DDC-807
2012-02-14 10:27:49 -08:00
Guilherme Blanco
2c3c5b34cf
Merge pull request #282 from FabioBatSilva/discriminatorColumnName
...
Mandatory discriminator column name
2012-02-14 10:26:01 -08:00
Andreas Hucks
1d927541e2
added type hint
2012-02-14 19:12:20 +01:00
Andreas Hucks
3419c65efe
fixed docblock
2012-02-14 19:08:44 +01:00
Andreas Hucks
2e81fbfd64
added type hint
2012-02-14 19:08:17 +01:00
Fabio B. Silva
da9b2e805e
remove unused parameter
2012-02-13 23:43:19 -02:00
Fabio B. Silva
cdde6e8a5c
fix required discriminator column name
2012-02-13 23:38:36 -02:00
Fabio B. Silva
5d01123413
Fix DDC-807, DDC-553
2012-02-13 23:22:49 -02:00
Fabio B. Silva
86054eb659
fix DDC-1642
2012-02-12 22:24:03 -02:00
Miha Vrhovnik
bea78f42e3
Proxy not initialized when parent has get<IDENTIFIER> function. Fixes DDC-1625
2012-01-30 11:44:08 +01:00
Benjamin Eberlei
3c4d2cd890
Merge pull request #253 from mrmkrs/protectedfields
...
enable set visibilty of class fields in EntityGenerator
2012-01-28 13:13:37 -08:00
Benjamin Eberlei
120bad8a2c
Merge pull request #262 from wrightlabs/patch-1
...
added optional Command array as parameter for run method
2012-01-28 13:12:50 -08:00
Benjamin Eberlei
6b1ef08a46
Merge pull request #162 from ericclemmons/patch-1
...
ProxyFactory creates proxy's parent structure if it doesn't exist
2012-01-28 13:12:26 -08:00
Benjamin Eberlei
359a9c015b
Merge pull request #196 from goetas/manyidx
...
Added some improvments for generated XML
2012-01-28 13:11:22 -08:00
Benjamin Eberlei
2ce705ceb3
Merge pull request #272 from jsor/table_options
...
Implement custom options on table level and complete column options implementation
2012-01-28 12:56:19 -08:00
Benjamin Eberlei
16b22f0f31
Merge pull request #266 from FabioBatSilva/DDC-1412
...
[DriverChain] Fix DDC-1412 Default Driver
2012-01-28 12:54:47 -08:00
Benjamin Eberlei
3407620bf8
[DDC-1526] Collections are not marked as initialized when they are fetch joined but dont contain any results. This only occurs when using LEFT JOINs on the assocations and causes another query to be fired when the empty collection is accessed again.
2012-01-28 12:28:16 +01:00
Benjamin Eberlei
551df4af52
[DDC-1617] Implement support for Generating Unique Constraints/Indexes in @Table annotation of EntityGenerator.
2012-01-28 11:16:36 +01:00
jsor
fac820f0e2
Complete custom column option implementation
...
- Support for xml driver
- Tests
2012-01-27 11:05:47 +01:00
Sergio Moya
88bbee127c
No unique join column fields for Single Table inheritance type.
2012-01-26 17:37:50 +01:00
Jan Sorgalla
d68fcd8bd2
Implement custom options on table level
2012-01-26 15:05:26 +01:00
Benjamin Eberlei
7dae89bb02
[DDC-1619] Add QueryBuilder#distinct
2012-01-25 10:19:01 +01:00
Benjamin Eberlei
f0a09a2d52
Merge branch 'DDC-1618'
2012-01-25 00:03:56 +01:00
Thomas Rabaix
8027fca378
Add SqlWalker::HINT_DISTINCT constant
2012-01-25 00:03:40 +01:00
Thomas Rabaix
d9bb861b1f
Fix DDC-1618 - add more check before throwing an iterateWithFetchJoinNotAllowed exception
2012-01-25 00:03:40 +01:00
Benjamin Michotte
1d2f46bda7
Add fluent code for relations
2012-01-24 19:08:25 +01:00
Sander Marechal
5dc0081f56
Add support for paginating WHERE NOT ... queries
...
The Pagination tool throws an exception on a DQL query like:
SELECT u FROM User u WHERE NOT (u INSTANCE OF Person)
This is because Paginate does not know about the
Doctrine\ORM\Query\AST\ConditionalFactor which implements the NOT
operator. This patch adds support for that.
2012-01-23 15:42:41 +01:00
Benjamin Eberlei
775071e1ff
[DDC-1613] Merge KnpLabs/Pagerfanta Pagination into a Doctrine\ORM\Tools\Pagination namespace. Thanks to @hobodave, pablo and the knplabs team for developing and maintaining this code.
2012-01-22 13:35:06 +01:00
Fabio B. Silva
0fce3c8f97
Fix DDC-1412
2012-01-21 12:42:46 -02:00
Benjamin Eberlei
faf92883b6
[DDC-1610] Add test and fix wakeup reflection in combination with event listener
2012-01-21 13:58:25 +01:00
Benjamin Eberlei
6c24251452
[DDC-1612] Fix bug with EntityManager#flush($entity) on new entities.
2012-01-21 13:06:30 +01:00
Benjamin Eberlei
0f3abde413
[DBAL-204] Filter namespaced assets if Schemas/Emulation is not supported.
2012-01-21 11:31:54 +01:00
Guilherme Blanco
74f3ed7e29
Fixing CS.
2012-01-18 23:27:28 -05:00
Guilherme Blanco
b98280a504
Quick optimizations are always good.
2012-01-18 23:09:23 -05:00
Guilherme Blanco
d39760ba49
Fixed DDC-1608. Non-initialized PersistentCollection methods removeElement and contains now deal correctly with managed entities.
2012-01-18 01:04:25 -05:00
John Wright
543c73bc05
added optional command array as parameter for run method
2012-01-16 21:01:44 -08:00
Guilherme Blanco
c1012f7970
Merge pull request #259 from danielholmes/m2m_extra_lazy_contains
...
Added fix for collection->contains with many-to-many extra lazy fetchMode
2012-01-16 19:51:11 -08:00
Guilherme Blanco
2bb511584e
Merge pull request #261 from armetiz/patch-7
...
Unique key name isn't correctly set - DDC-1603
2012-01-16 19:44:22 -08:00
Guilherme Blanco
fdb2b9c655
Optimized scalar type mapping support.
2012-01-16 14:26:13 -05:00
armetiz
21c9be74c9
Update lib/Doctrine/ORM/Tools/SchemaTool.php
2012-01-16 13:54:04 +01:00
Benjamin Eberlei
a029b28423
[DDC-1604] Have ORM Proxy implement new \Doctrine\Common\Persistence\Proxy
...
* Adjust ProxyFactory to generate proxies according to new naming schema.
* Change proxy naming and file-name generation to be a bit more consistent than previous approach.
[DDC-1598] Additional regexp to check for simple ID methods to make it even more safe.
2012-01-16 12:50:36 +01:00
armetiz
56c49fedd2
Unique key name isn't correctly set - DDC-1603
2012-01-16 10:30:15 +01:00
Daniel Holmes
a12e5ac8a7
Updated some comparisons to strict equality
2012-01-16 08:12:11 +11:00
Benjamin Eberlei
27451a59d4
Merge pull request #254 from jsor/custom_options
...
Pass options attribute in @Column annotation to Schema\Column's customSchemaOptions
2012-01-15 09:06:46 -08:00
Benjamin Eberlei
56ea4872ca
DDC-1594 - Fix problem with merge and an existing managed proxy instance.
2012-01-15 15:48:44 +01:00
Benjamin Eberlei
36ce26691d
DDC-1585 - Throw exception if setting target entity of the wrong type to an assocation.
2012-01-15 14:59:20 +01:00
Daniel Holmes
5deebc8738
Added fix for collection->contains when many-to-many extra lazy fetchMode
2012-01-15 23:25:57 +11:00
Benjamin Eberlei
106f10513f
[DDC-1601] Fix bugs in SchemaValidator, using all modelsets as testdata for a large test
2012-01-15 11:27:52 +01:00
Guilherme Blanco
ea14bcff4a
Fixed DDC-657. Added type conversion to scalar result.
2012-01-13 20:46:59 -05:00
Marcel
f76d327413
use self:: instead of EntityGenerator::
2012-01-13 14:43:13 +01:00
Marcel
72d5d0281a
use !== to check field visibility
...
use class constants
2012-01-13 14:34:34 +01:00
Marcel
69f0d70a98
fix if coding standard
...
fix typo
2012-01-13 14:14:28 +01:00
Marcel
f26d43b3ea
remove whitespace
...
tabs -> spaces
added class constants
updated phpdoc
2012-01-13 11:24:35 +01:00
Guilherme Blanco
bb10211983
Fixes DDC-1596. Added table alias to discriminator column when using STI.
2012-01-12 23:58:08 -05:00
Guilherme Blanco
da7fd2ece7
Merge pull request #250 from FabioBatSilva/DDC-1575
...
[DDC-1575] Give the FQCN to the naming strategy
2012-01-12 20:45:22 -08:00
Francisco Facioni
e7a6d87990
When using a ManyToMany relationship no listener is notified about any change to the owning entity.
...
What I'm doing with this patch is marking the entity for update when there is a modification in the ManyToMany relationship so the listeners are notified about it.
The main reason for this is for hooking up services like Solr or other indexers to update the entities even for ManyToMany relationships.
2012-01-12 14:38:07 -03:00
Benjamin Eberlei
c1dae35a24
Fix notice when using regenerate if exists and file is not new.
2012-01-12 11:20:49 +01:00
jsor
615e22073f
Pass options attribute in @Column annotation to Schema\Column's customSchemaOptions
2012-01-11 15:58:57 +01:00
Benjamin Eberlei
adec530c13
Merge branch '2.2'
2012-01-09 08:26:33 +01:00
Benjamin Eberlei
41ae873048
DDC-1588 - Improve ResultCache API. The default cache impl is passed to new query cache profiles automatically now.
2012-01-09 08:26:07 +01:00
Benjamin Eberlei
d0b0b0ce59
Merge 2.2
2012-01-09 08:05:15 +01:00
Benjamin Eberlei
773fbd9edb
Merge branch '2.2'
2012-01-09 08:04:44 +01:00
Benjamin Eberlei
0014afe746
Fix Typo
2012-01-09 08:04:21 +01:00
Benjamin Eberlei
e16803de61
[doctrine/common-GH-92] Fixing notice when annotation driver is used in combination with static reflection.
2012-01-09 08:02:53 +01:00
Vitali Yakavenka
53ecedf70a
Remove support to pass arguments to custom ID generator's constructor
2012-01-08 15:20:35 +03:00
Vitali Yakavenka
59e9d55077
Merge doctrine/master
2012-01-06 22:06:59 +03:00
Marcel Raaijmakers
facd64ef2f
enable set visibilty of class fields in EntityGenerator
2012-01-06 16:58:27 +01:00
Benjamin Eberlei
d34c39555d
Bump dev version to 2.2.0
2012-01-03 22:27:03 +01:00
Benjamin Eberlei
8d3d604ed3
Release 2.2.0-BETA2
2012-01-03 22:27:03 +01:00