Alexander
53386e5247
Merge branch 'master' into innerjoin-on-fetch-eager
...
Conflicts:
lib/Doctrine/ORM/Persisters/BasicEntityPersister.php
2011-10-31 22:24:16 +01:00
Benjamin Eberlei
231d84b625
Fix xml fix again
2011-10-31 22:15:08 +01:00
Alexander
22b3b46b61
Removed unnecessary spaces in generated SQL
2011-10-31 22:08:40 +01:00
Alexander
3994b80aa4
Fix TODO: Inner join when all join columns are NOT nullable.
2011-10-31 21:36:55 +01:00
Benjamin Eberlei
1dc5b7fba4
DDC-1462 - Fix bug in slice when calling on a dirty collection that is marked extra lazy
2011-10-31 21:34:22 +01:00
Benjamin Eberlei
95193ab5f8
DDC-1399 - Fix extra lazy collections when inner collection contains values but persistent collection is marked not dirty because of flush()
2011-10-31 21:17:01 +01:00
Benjamin Eberlei
11f82bd41f
DDC-1439 - Fix validate mapping some more
2011-10-31 20:49:59 +01:00
Guilherme Blanco
d444f0e06b
Micro optimization in SqlWalker.
2011-10-30 16:22:45 -02:00
Guilherme Blanco
c246c6b28b
AssignedGenerator optimization.
2011-10-30 16:07:43 -02:00
Guilherme Blanco
3cfa479c01
Micro optimization in computeChangeSet when using readOnly entities.
2011-10-30 15:46:07 -02:00
Benjamin Eberlei
64d405f7dd
Merge origin/master into DDC-1384
2011-10-30 12:12:18 +01:00
Benjamin Eberlei
30731e0727
DDC-1384 - Fix all tests on Oracle
2011-10-29 23:58:09 +02:00
Benjamin Eberlei
50e028212d
DDC-1384 - Fix a bunch of Oracle test failures
2011-10-29 20:42:44 +02:00
Adrien BRAULT
e39bfced4a
Fix iterate method doc return type
2011-10-29 13:40:01 +02:00
Guilherme Blanco
15562d030e
Merge branch 'master' of github.com:doctrine/doctrine2
2011-10-29 02:00:55 -02:00
Guilherme Blanco
0ec2cc557f
Implemented support to entities with association marked as @Id support in many situations. Fixed DDC-1435.
2011-10-29 02:00:35 -02:00
Benjamin Eberlei
7be98f475e
DDC-1410 - Remove code-inlining that caused problems
2011-10-28 23:45:23 +02:00
Thiago Festa
66d2b9e0fb
The ProxyFactory was redeclaring methods serialize and unserialize on the cache file on some OSs.
2011-10-28 17:54:15 -02:00
Guilherme Blanco
3745e948c6
Made SimpleSelectExpression (Literal) be included as a scalar result. More general SQL Walker optimizations.
2011-10-28 14:25:12 -02:00
Guilherme Blanco
1f06e9fca5
Fixed issue with SimpleSelectExpression containing Literals. This issue is related to a previously fixed ticket DDC-1079.
2011-10-28 12:56:14 -02:00
Guilherme Blanco
7841ccb7c0
Merge branch 'master' of github.com:doctrine/doctrine2
2011-10-28 12:49:21 -02:00
Guilherme Blanco
1579c43433
Code beautification and docblocks enhancements.
2011-10-28 12:49:01 -02:00
Benjamin Eberlei
f34eb83a7c
DDC-1454 - Fix exists() for Joined table inheritance
2011-10-28 00:50:10 +02:00
Benjamin Eberlei
8db1a09001
Merge branch 'master' of github.com:doctrine/doctrine2
2011-10-28 00:26:54 +02:00
Benjamin Eberlei
4a0227e5f2
Revert Expr\Base patch
2011-10-28 00:24:41 +02:00
Benjamin Eberlei
5918058d86
Merge origin/master
2011-10-27 22:36:06 +02:00
Guilherme Blanco
c5ef21864f
Fixed bug with fetch=EAGER associations that have already been hydrated during querying.
2011-10-26 15:04:49 -02:00
Lukas Kahwe Smith
0a5a23628f
added EntityRepository::getClassName() to fullfill the ObjectRepository interface
...
see https://github.com/doctrine/common/pull/70
2011-10-25 23:21:39 +02:00
Benjamin Eberlei
a02b0c9269
Merge pull request #165 from armetiz/patch-3
...
Update lib/Doctrine/ORM/Query/Expr/Base.php
2011-10-24 03:42:04 -07:00
Asmir Mustafic
7efd615b8c
Coding standards
2011-10-24 12:00:11 +02:00
Jaik Dean
cdb452b27b
Fixed typos of 'discriminator'
2011-10-24 10:01:27 +01:00
Asmir Mustafic
5f80b57554
Improoved coding standards
2011-10-24 10:19:01 +02:00
Benjamin Eberlei
adc4840cce
DDC-217 - Add support for QueryCacheProfiles and remove the old result caching code from ORM. Deprecate a bunch of methods in favor of using the AbstractQuery#getQueryCacheProfile method.
2011-10-23 23:28:23 +02:00
everzet
91d8829c43
removed non-used code
2011-10-23 18:50:24 +03:00
everzet
66e2a9260e
added PreFlush lifetime event and lifecycle callback
2011-10-23 18:39:16 +03:00
Benjamin Eberlei
9b8d2d512b
Merge pull request #168 from dfreudenberger/master
...
postFlush event implementation
2011-10-23 01:12:27 -07:00
Benjamin Eberlei
5d3298e706
DDC-720 - Correct mentioned issues by @asm89
2011-10-23 10:05:46 +02:00
Daniel Freudenberger
fa8000fa5c
dispatch the event after the snapshot was taken
2011-10-23 01:27:09 +02:00
Daniel Freudenberger
5e28273548
fixed typo in docblock
2011-10-22 18:57:48 +02:00
Daniel Freudenberger
46a3fecb4f
added the postFlush event
2011-10-22 18:38:51 +02:00
Alexander
079e2b1302
[DDC-1384] Fix for generating sql with aliases not longer than MaxIdentifierLength
2011-10-22 16:27:56 +02:00
Benjamin Eberlei
f569a2a389
DDC-720 - Add support to flush only one entity (within cascade rules) through EntityManager#flush()
2011-10-22 13:44:33 +02:00
Asmir Mustafic
d4059b88ca
Nullable relations, fixing join condition
2011-10-21 15:30:21 +02:00
armetiz
baef4f735f
Update lib/Doctrine/ORM/Query/Expr/Base.php
2011-10-21 16:30:06 +03:00
armetiz
4a50eb4fa7
Update lib/Doctrine/ORM/Query/Expr.php
2011-10-21 11:55:54 +03:00
Asmir Mustafic
fe84a61d0b
Better code generation when association is nullable
2011-10-21 09:38:37 +02:00
Asmir Mustafic
596ba3d5b1
Collection inteface instead of ArrayCollection
2011-10-19 15:04:16 +02:00
Benjamin Eberlei
ca01065c6a
Bugfix in short identifier shortcut with association ids
2011-10-19 11:58:59 +02:00
Asmir Mustafic
be3adfb35e
With TO_MANY relations, class filed is instanceof ArrayCollection,
...
instead of targetEntity class type.
2011-10-19 09:25:40 +02:00
Asmir Mustafic
8f092812c4
Spaces
2011-10-19 09:17:30 +02:00
Asmir Mustafic
9c1202a766
Added <variableDefault> on generated class.
...
This allow to unset many-to-one and one-to-one relations
Example: $user->setGroup(null);
2011-10-19 09:15:41 +02:00
Asmir Mustafic
e19fd756cb
Better indentation for generated class
2011-10-19 09:07:18 +02:00
Benjamin Eberlei
7345c795ac
Merge pull request #154 from Partugal/master
...
Fix isTransient call on uninitialized ClassMetadataFactory
2011-10-19 00:04:14 -07:00
Asmir Mustafic
0d57ffbc3b
Set association-key attribute in xml mapping
2011-10-18 15:48:56 +02:00
Sergey Linnik
c3ec6e383c
Fix isTransient call on uninitialized ClassMetadataFactory
2011-10-18 01:14:07 +04:00
Alexander
fea855004c
Merge remote-tracking branch 'doctrine/master' into shesek-patch-1
2011-10-17 18:55:48 +02:00
Guilherme Blanco
83a8ed01e7
Merge pull request #94 from kwiateusz/findByOnePatch
...
Now findByOne really retrieve only one entity adding limit to query.
2011-10-17 06:24:37 -07:00
Benjamin Eberlei
2b663ff2bc
Merge branch 'master' of github.com:doctrine/doctrine2
2011-10-16 22:47:28 +02:00
Benjamin Eberlei
939fbf9c24
DDC-1278 - Clean up event handling of new clear functionality.
2011-10-16 22:45:06 +02:00
Benjamin Eberlei
22a04fd6de
Merge dominikl/DDC-1278 into doctrine/DDC-1278
2011-10-16 22:41:16 +02:00
Benjamin Eberlei
8466060797
DDC-1385 - Add INDEX BY scalar variables on the top-level
2011-10-16 19:23:20 +02:00
Christophe Coevoet
a8e6131e3b
Added the initializeObject method in the EntityManager
2011-10-16 17:00:33 +02:00
Benjamin Eberlei
ee924ffaba
DDC-1385 - Fix scalar handling for array hydrator
2011-10-16 16:27:50 +02:00
Benjamin Eberlei
2730f64d90
DDC-1385 - Refactor ObjectHydrator
2011-10-16 16:13:59 +02:00
Benjamin Eberlei
cb0e5dbff3
DDC-1385 - Fixed Mixed result hydration using INDEX BY to work on the top-level indexes, not some weird result. This is a BC break to those that actually use this crazy logic, sorry for that :-)
2011-10-16 12:46:17 +02:00
Benjamin Eberlei
0252d55c67
DDC-1358 - Fix bug where multiple NULL root entity combined with scalar results will break the object and array hydrator.
...
This case likeli only occurs when doing native queries. A guard clause that prevents hydration from breaking
when RIGHT JOIN queries with null root entities appear has been added aswell.
2011-10-16 11:15:45 +02:00
Guilherme Blanco
eeba947ea7
Code optimizations. Fixed unused argument in OrmTestCase as referred in DDC-766.
2011-10-16 02:10:59 -02:00
Benjamin Eberlei
4474d305cb
DDC-1210 - Optimize UnitOfWork collection handling internally.
2011-10-15 21:47:16 +02:00
Benjamin Eberlei
7c244abc1c
Merge branch 'master' of github.com:doctrine/doctrine2
2011-10-15 21:09:36 +02:00
Benjamin Eberlei
7b71b3284d
Fix failing test due to EntityGenerator assuming beginning with 2.2 the AnnotationReader is always used. There is still the simple reader though.
2011-10-15 20:41:07 +02:00
Benjamin Eberlei
7e571212a7
Merge pull request #109 from alOneh/patch-1
...
Remove trailing spaces
2011-10-15 11:39:56 -07:00
Benjamin Eberlei
75e1d17d18
Merge branch 'ValidateJoinColumnsMatching'
2011-10-15 20:33:46 +02:00
Benjamin Eberlei
a82bffbfc9
Make SchemaValidator catch errors such as very invalid schema using only part of the primary key for join columns
2011-10-15 20:31:56 +02:00
Guilherme Blanco
ba38f3e1e9
Merge pull request #148 from asm89/ProxyIdentifer
...
Do not load entity on retrieving identifier from a proxy
2011-10-15 11:23:06 -07:00
Benjamin Eberlei
18fd29613c
Merge pull request #137 from docteurklein/fluent_query_expr
...
added fluent pattern to Query\Expr\Base::add* methods
2011-10-15 11:09:37 -07:00
Benjamin Eberlei
1f59001ff7
Merge pull request #130 from bmichotte/master
...
Fluent entity (master)
2011-10-15 11:01:19 -07:00
lenar
3dc30dee11
use the correct targetEntity
2011-10-15 20:00:02 +02:00
lenar
cab154b873
identifier referencing foreign entity can be defined in parent class too
2011-10-15 19:59:50 +02:00
Benjamin Eberlei
7f5844c209
Merge pull request #147 from asm89/assignid
...
Goetas: Better error handling on missing assigned id
2011-10-15 10:41:27 -07:00
Alexander
c5e51e6fa9
Merge branch 'master' into assignid
2011-10-15 19:33:42 +02:00
Alexander
fdb9fb1c2b
AssignedGenerator can always tell what field is missing an id
2011-10-15 19:33:29 +02:00
Benjamin Eberlei
b6c49863e8
Merge branch 'master' of github.com:doctrine/doctrine2
2011-10-15 19:14:53 +02:00
Benjamin Eberlei
08716d9f72
DDC-1383 - Proxy Generation in merge was flawed with inheritance
2011-10-15 19:14:30 +02:00
Benjamin Eberlei
73101be422
Merge pull request #143 from craue/patch-2
...
added missing type hint
2011-10-15 10:05:53 -07:00
Benjamin Eberlei
6f3667201c
Add @ignore and @internal to UnitOfWork#computeChangeSet
2011-10-15 18:11:14 +02:00
Benjamin Eberlei
52cea01563
DDC-1411 - Fixed onDelete handling in EntityGenerator
2011-10-15 17:53:04 +02:00
Benjamin Eberlei
cb21f3c5ff
DDC-1414 - Missing push to $newNodes
2011-10-15 17:47:09 +02:00
Alexander
f47e1feac6
Merge branch 'master' of git://github.com/doctrine/doctrine2 into ProxyIdentifer
...
Conflicts:
lib/Doctrine/ORM/Proxy/ProxyFactory.php
2011-10-15 17:24:13 +02:00
Benjamin Eberlei
e38076c19a
DDC-1421 - Fix potential bug and code-smells
2011-10-15 16:57:57 +02:00
Benjamin Eberlei
dd6f6cb097
Fix notice
2011-10-15 16:03:50 +02:00
Benjamin Eberlei
640facd26a
Remove unncessary line
2011-10-15 15:51:11 +02:00
Benjamin Eberlei
3801e0c230
Add way to keep track of read only objects in the UnitOfWork which are never updated during flush.
...
Changed the behavior of EntityManager#getPartialReference to be read-only. No changes are ever
done to this entities. Changed UnitOfWork#computeChangeSet to never create a changeset for
fields that are partially omitted from a DQL or NativeQuery.
To check if an entity is read only use the new API:
if ($entityManager->getUnitOfWork()->isReadOnly($entity))
2011-10-15 15:42:02 +02:00
Guilherme Blanco
772b413579
Fixed bug with boolean values being converted to string.
2011-10-15 00:23:55 -03:00
Fabien Potencier
6a72ba5f97
DDC-1418 - Add simplified XML and YAML drivers ported from the Symfony project, thanks Fabien
2011-10-13 23:39:11 +02:00
Benjamin Eberlei
a36a1624fb
[DDC-1415] Add EntityEventDelegatee, allowing to restrict emitting events to certain entity classes only.
2011-10-13 22:58:22 +02:00
Christophe Coevoet
c7c875a063
Fixed the version check in the entity generator
...
The 3.0.x branch of Common has been merged to become the incoming
2.2 release.
2011-10-10 19:20:01 +02:00
Benjamin Eberlei
9058bc3f5c
Fix DDC-1402 - No caching for SingleTablePersister::_getSelectColumnList
2011-10-10 17:52:37 +02:00
Christian Raue
1681d8a893
switched 2nd and 3rd argument for SelectExpression's constructor, making the 3rd one optional to keep its signature compatible to previous versions
2011-10-10 14:04:55 +02:00
Christian Raue
689aaef4dc
added missing type hint
2011-10-10 09:44:17 +03:00
Christian Raue
bf44be86a9
fixed typo
2011-10-10 03:02:55 +03:00