[DDC-3862] Doctrine\ORM\UnitOfWork::orphanRemovals is private Created: 03/Aug/15  Updated: 03/Aug/15  Resolved: 03/Aug/15

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: 2.5
Fix Version/s: None
Security Level: All

Type: Improvement Priority: Minor
Reporter: Erik van Velzen Assignee: Marco Pivetta
Resolution: Won't Fix Votes: 0
Labels: orphanRemoval, transactions


 Description   

This variable has no getter (e.g. getScheduledOrphanRemoval) unlike similar properties like Doctrine\ORM\UnitOfWork::entityDeletions.

It would be useful to me if this were exposed.



 Comments   
Comment by Marco Pivetta [ 03/Aug/15 ]

Exposing UoW internals is usually only leading to issues. Exposing it needs a strong use-case (that cannot be achieved otherwise) before being suggested.





[DDC-3860] PHP7 compatability issues Created: 03/Aug/15  Updated: 03/Aug/15  Resolved: 03/Aug/15

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: 2.5
Fix Version/s: None
Security Level: All

Type: Task Priority: Major
Reporter: Denis Chernosov Assignee: Marco Pivetta
Resolution: Invalid Votes: 0
Labels: php-7.0


 Description   

sstalle/php7cc (A command-line tool to check PHP 5.3 - 5.6 code compatibility with PHP 7) has been used

$ php bin/php7cc.php ../some_symfony_project

File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereConnection.php
Line 164. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereStatement.php
Line 214. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 244. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
Line 239. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 270. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvConnection.php
Line 93. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
Line 88. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php
Line 90. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php
Line 211. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 241. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php
Line 112. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
Line 141. Possible array element creation during by-reference assignment: $this->_bindedValues[$param] =& $this->_values[$param];


File: ../some_symfony_project/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Expr.php
Line 53. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 72. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 271. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();



File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php
Line 473. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 501. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 779. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 805. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 838. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 872. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 899. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 965. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 981. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 1004. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Query/Expression/ExpressionBuilder.php
Line 74. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 93. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Portability/Connection.php
Line 144. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
Line 904. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
Line 1021. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php
Line 108. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php
Line 56. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
Line 383. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php
Line 365. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
Line 925. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
Line 91. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();

File: ../some_symfony_project/vendor/doctrine/collections/lib/Doctrine/Common/Collections/ExpressionBuilder.php
Line 45. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();
Line 55. Function argument(s) returned by "func_get_args" might have been modified: func_get_args();


File: ../some_symfony_project/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php
Line 293. Possible array element creation during by-reference assignment: $this->_resultPointers[$dqlAlias] =& $coll[$index];
Line 303. Possible array element creation during by-reference assignment: $this->_resultPointers[$dqlAlias] =& $coll[key($coll)];
                                                                 
  [PhpParser\Error]                                              
  Syntax error, unexpected '.', expecting T_VARIABLE on line 18  


 Comments   
Comment by Marco Pivetta [ 03/Aug/15 ]

Went through all these: no issues found, all false positives.

Please inspect them manually yourself before opening further issues via automated tools.





Generated at Mon Aug 03 21:43:32 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.