1
0
Fork 0
mirror of synced 2025-03-28 19:03:50 +03:00
doctrine2/tests/Doctrine/Tests
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
..
Mocks Make ORM forward compatible with new Doctrine Annotations library version 2.1 2011-05-25 00:26:20 +02:00
Models Added tests for DDC-1389. Everything is working in 2.2-DEV. 2011-10-15 00:18:57 -03:00
ORM Add way to keep track of read only objects in the UnitOfWork which are never updated during flush. 2011-10-15 15:42:02 +02:00
DbalFunctionalTestCase.php Added a bunch of functional tests for the public read, write and transactional public DBAL API, passing all the current drivers 2010-05-15 19:54:56 +02:00
DbalTestCase.php Enabling namespaces. Final restructurings. 2009-01-22 19:38:10 +00:00
DoctrineTestCase.php [2.0] DDC-84 - Add Mysql Platform unittests for incremental changes of the metadata for the schematool update function. Fixed some quirks in the Unit-Test suite alongside, Fixed changes of length in SchemaTool update. 2009-10-31 22:23:36 +00:00
OrmFunctionalTestCase.php Added coverage for orphanRemoval in OneToOne when unlinking an entity. 2011-09-07 13:12:02 -03:00
OrmPerformanceTestCase.php [2.0] Adding insert performance tests. 2009-05-19 16:11:08 +00:00
OrmTestCase.php @Target annotation and support to common 2.2-DEV 2011-08-13 16:28:05 -03:00
TestInit.php Switch testsuite to run with phpunit.ini.dist from main folder, not using AllTests approach. Fixed global state problem in tests that was caused by EventManager being reused. Significantly enhanced error message about cascade persist 2011-06-18 22:47:21 +02:00
TestUtil.php Fix some of the problems with Oracle testsuite 2011-06-26 17:20:03 +02:00