Tim Lieberman
3acfa50214
Fix for BC break #7366 when calling EM::find() with LockMode::OPTIMISTIC outside of a TX
2018-09-23 05:33:05 +02:00
Michael Kühn
ff68806bfa
Fix for #7068 : EntityManager::find() with pessimistic lock should check for transaction
2018-07-03 03:00:58 +02:00
Aaron Scherer
99db207a9f
getRepository actually returns ObjectRepository
2017-10-18 19:10:00 -07:00
Marco Pivetta
12043cd845
#5796 minor CS fixes (imported symbols) and removing last PHP5 compliance bits
2017-09-02 13:47:58 +02:00
Marco Pivetta
a1c93bfd48
#5796 replacing Exception
catching with Throwable
catching, removing PHP5 compliance code
2017-09-02 13:44:12 +02:00
Benjamin Morel
874a5e3547
Catch Throwable in PHP 7
2017-09-02 13:41:53 +02:00
Artem Stepin
43009682a4
minor code work:
...
- method calls with incorrect case
- removed unused imports
- typos and some other minor code smells
- documentation update (wrong return types etc. )
2017-06-08 22:04:07 +02:00
Luís Cobucci
234989d069
Use short-array syntax on "lib" directory
2016-12-08 00:31:12 +01:00
Marco Pivetta
1d7397caf0
#6017 moving entity name validity checks into the EntityManager
API, documenting newly thrown exception types
2016-11-27 18:37:45 +01:00
SpacePossum
e37041aa94
Update message.
2016-11-18 08:06:11 +01:00
SpacePossum
f9a605f6ca
Add details about invalid Connection passed at creation.
2016-11-17 17:23:22 +01:00
Tony Nelson
cd36407f28
Update EntityManager.php
2016-07-05 12:48:00 -05:00
Marco Pivetta
d00069e38b
Reverting 741da7806c5d01796e243de9a122590151cb0c90, which was causing issues due to loose type checking
...
See this example on why the revert is needed: https://3v4l.org/8T34v
Code copied for reference:
```php
<?php
$a = 1;
switch ($a) {
case "1";
echo "FUCK YOU, STUPID LANGUAGE!";
break;
case 1;
echo __LINE__;
break;
}
```
2016-06-19 09:28:12 +02:00
Peter Gribanov
fa7799cec1
return check EventManager
2016-06-08 12:24:41 +03:00
Peter Gribanov
c0a87597fa
correct code style
2016-06-08 11:47:09 +03:00
Peter Gribanov
0b5b7190d7
not check EventManager
2016-06-08 11:29:43 +03:00
Peter Gribanov
fadd0a338f
add createConnection static method
2016-06-08 10:58:44 +03:00
Peter Gribanov
741da7806c
change switch/case to if/else
2016-06-08 10:29:39 +03:00
jeroendedauw
34dbefaf22
Add missing @throws tags
2016-02-15 15:15:32 +01:00
Steve Müller
1697293591
Merge pull request #1563 from rawkode/bugfix/incorrect-rollback-method-name
...
Fixing method name 'rollBack', which was documented as 'rollback'
2016-01-06 11:49:32 +01:00
Jeroen Thora
6dcb97a20e
Fixed many small phpcs issues
2015-12-11 20:30:41 +01:00
David McKay
3c7d92e4cc
Fixed incorrect case of another two references of rollback
2015-11-30 16:53:31 +00:00
Guilherme Blanco
46dec5478a
Merge pull request #1505 from qu1m/master
...
Fixed issue with entity manager when using LockMode::NONE
2015-11-08 22:51:38 -05:00
Quim Manrique
1dbacec0e4
Fixed issue with entity manager when using LockMode::NONE
2015-09-08 00:31:03 +02:00
Sergio Santoro
8c6607532b
EntityManager#getReference throw ORMException for unrecognized id
...
- Unreachable statements have been removed
- Throw ORMException for unrecognized identifier field (same
behavior as EntityManager#find)
2015-05-10 00:28:28 +02:00
Jeroen Thora
a409e7591d
Changed some wrong usage of the @internal phpdoc
2015-03-15 16:53:34 +01:00
velosipedist
60cb01be1f
Fix switch non-uniform syntax
2014-06-29 18:00:02 +04:00
Guilherme Blanco
10a0daf620
DDC-3068 DDC-3069 EntityManager::find accept array of object as id.
2014-04-18 02:03:47 +00:00
fabios
1dc3396ad4
DDC-3078 - Use CacheFactory instead of cache instantiator
2014-04-17 15:20:31 -04:00
Marco Pivetta
df6a411365
DDC-3078 - cache instantiator is used in the ORM instead of callables
2014-04-17 15:16:59 -04:00
Marco Pivetta
87a907f9dd
DDC-3078 - switching cache initialization to use cache instantiator from config
2014-04-17 15:16:57 -04: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
Steve Müller
a6c8ab8a5f
make lock mode usage consistent
2014-02-05 15:13:53 +01: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
Luís Otávio Cobucci Oblonczyk
6d58824ac5
Use docblox from EntityManagerInterface
2013-12-10 12:09:36 -02:00
Nicolas Bastien
33ddb9c0ca
Remove unused use statement
2013-10-07 15:58:41 +02: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
Guilherme Blanco
a66fc03441
Reducing dependency on RepositoryFactory by providing EntityManager as a getRepository argument.
2013-06-13 23:53:53 -04:00
Guilherme Blanco
7eb744126b
Implemented support for RepositoryFactory.
2013-06-13 21:47:40 -04: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
Lars Strojny
acc8b61cd1
Adding EntityManagerDecorator base class as an extension point for EntityManager
2013-03-06 23:30:47 +01:00
Joshua Johnson
b55d78e119
Fix EntityManager doc
2013-02-21 17:27:55 -05:00
Benjamin Morel
cba1c8295c
Fixed wrong return types in documentation.
2013-02-12 11:49:44 +00:00
Benjamin Morel
7869ec714d
Fixed unused 'use' statements.
...
Fixed missed documentation issues in Doctrine\ORM
2012-12-13 18:19:21 +00:00
Benjamin Morel
dacdd6cd89
Documentation (docblock) fixes.
2012-12-01 16:28:06 +00:00
Fabio B. Silva
a09a5b9b7b
Fix DDC-2084
2012-11-05 22:23:44 -02:00
jakoch
d4a6c488ca
fixed use statements
2012-10-12 13:53:20 +02:00
Konstantin Kuklin
34d8843fd6
improve phpdoc
2012-09-21 03:20:06 +04:00