Release Notes - Doctrine 2 - ORM - Version 2.3 - HTML format

Bug

  • [DDC-937] - doctrine-mapping.xsd sequence relation-entities
  • [DDC-1379] - Entity Generator Bug with extended classes
  • [DDC-1473] - GH-181: make merge copy non persisted properties too
  • [DDC-1497] - Orm:generate-entities generates incorrect code when it has multiple relations with the same entity
  • [DDC-1529] - Multiple FROM Entities and inheritance
  • [DDC-1550] - GH-234: Fix QueryTest#testJoinQueries order
  • [DDC-1557] - SimpleSelectExpression does not accept DQL functions
  • [DDC-1561] - GH-239: Fix $qb->expr() PHPDoc @return type.
  • [DDC-1562] - GH-240: fix QueryDqlFunctionTest#testFunctionSubstring order
  • [DDC-1567] - GH-242: [UnderscoreNamingStrategy] fix docblock
  • [DDC-1579] - MappedSuperClass and inheritance problem with console generate:entities command
  • [DDC-1591] - Paginator: ResultVariable cannot be used in HavingClause
  • [DDC-1596] - Discriminator column has no table alias
  • [DDC-1598] - ProxyFactory makes assumptions on identifier getter code
  • [DDC-1603] - Unique key name isn't correctly set
  • [DDC-1606] - Added fix for collection->contains with many-to-many extra lazy fetchMode
  • [DDC-1608] - Lazy load more restrict when consuming PersistentCollection trigger actions to *Persisters
  • [DDC-1657] - The Doctrine cli tool does not handle schema correctly.
  • [DDC-1673] - ProxyFactory method generateProxyClasses argument $toDir does not affect anything
  • [DDC-1677] - [GH-295] by brikou: According to "Doctrine's implicit CS" and "Symfony's implicit CS" an emp...
  • [DDC-1679] - [GH-296] by brikou: According to "Doctrine's implicit CS" and "Symfony's implicit CS" an emp...
  • [DDC-1685] - Using the CountWalker on an entity with ID on OneToOne field fails
  • [DDC-1687] - [GH-298] by sandermarechal: Pagination using SQL walkers
  • [DDC-1689] - [GH-299] by patrick-mcdougle: Fixed comment for createQuery to include the variable name.
  • [DDC-1694] - Entity Generator uses wrong DataTypes for docBlocks
  • [DDC-1696] - String support in THEN and ELSE part of CASE expression is broken
  • [DDC-1719] - When tablename or field name contains an hyphen it generates an error
  • [DDC-1725] - [GH-309] Fix DDC-1686
  • [DDC-1726] - [GH-310] [DDC-889] Mention parent class for debugging purposes.
  • [DDC-1735] - [GH-312] Removed LOCK_EX for writing Proxy class file
  • [DDC-1736] - [GH-313] Fixed tests on Windows
  • [DDC-1737] - MEDIUMTEXT field
  • [DDC-1743] - [GH-315] [WIP] Allowing proxies to be passed to ORM public API
  • [DDC-1748] - [GH-317] Fix DDC-1694
  • [DDC-1752] - [GH-321] Addition for new cache driver
  • [DDC-1757] - DQL exception when building query with multiple from and join parts
  • [DDC-1763] - Fixing a bug when calling setDiscriminatorMap from multiple sources (ie: from Events::loadClassMetadata and annotation).
  • [DDC-1764] - [GH-326] 2.1.x setDiscriminatorMap fix
  • [DDC-1768] - [GH-330] improved exception message
  • [DDC-1781] - [GH-337] Removed dependency on common as required by dbal anyway
  • [DDC-1784] - Error on generate entities: 'Attribute "allocationSize" of @ORM\SequenceGenerator'
  • [DDC-1791] - Paginator query doesn't work using Oracle
  • [DDC-1798] - [GH-342] Fix identifier generator strategy for composite identifier
  • [DDC-1800] - Paginator results is wrong if your query use order by clause
  • [DDC-1802] - DQL parser issue when using FunctionsReturningStrings(...) NOT LIKE
  • [DDC-1807] - [GH-344] Composer modify
  • [DDC-1808] - [GH-345] Fixed DDC-1802
  • [DDC-1823] - Error with IN and UPPER in the same line
  • [DDC-1826] - [GH-349] Fix DDC-1822
  • [DDC-1827] - [GH-350] Added the branch-alias in the composer.json
  • [DDC-1831] - Problem while implement a relation many to many with columns names starting with caps
  • [DDC-1839] - [GH-358] Update license for Composer
  • [DDC-1843] - CLONE -Join columns can't be quoted
  • [DDC-1848] - "QueryException: Invalid parameter number: number of bound variables does not match number of tokens" with "dev-master" of Doctrine\ORM + Pagerfanta.
  • [DDC-1849] - Paginator: The Parameter Types are not set in Function cloneQuery
  • [DDC-1854] - [GH-362] Correct some mistakes (tabs & trailing spaces)
  • [DDC-1855] - [GH-363] Entities generator: constructor's template docblock
  • [DDC-1862] - [GH-365] DDC-1860 - Composer arbitrary for CLI and composer/autoload.php in different paths
  • [DDC-1865] - [GH-368] Join poc
  • [DDC-1866] - [GH-369] Show the advice only when relevant.
  • [DDC-1868] - [GH-370] Some PHP-CS fixes
  • [DDC-1869] - [GH-371] set permissions as expected by composer.phar update
  • [DDC-1870] - [GH-372] [DDC-1845] QuoteStrategy
  • [DDC-1873] - [GH-373] Grammar fix for composer.json file
  • [DDC-1876] - [GH-375] Allow passing any callable instead of only closures
  • [DDC-1877] - [GH-376] De-deprecate transaction handling methods
  • [DDC-1878] - [GH-377] Fix the documentation link in the README
  • [DDC-1880] - Named Queries not processed correctly in XML
  • [DDC-1881] - [GH-379] Fix join-poc merge
  • [DDC-1883] - [GH-380] remove svn markers
  • [DDC-1885] - Problem with column quoting on Delete
  • [DDC-1893] - Doctrine\ORM\Mapping\Driver\AnnotationDriver::create() not updated for new annotation readers
  • [DDC-1895] - update an entity with an ID column which is a relation instead of a normal field
  • [DDC-1897] - [GH-384] [DDC-1885] Fix quotes in many to many persisters
  • [DDC-1900] - Impossibility to override built-in SQL functions
  • [DDC-1902] - [GH-387] fixed typo in command help text
  • [DDC-1904] - [GH-388] Added an empty line feed preceding the return statement
  • [DDC-1911] - [GH-392] Replaced a shallow-copy with a deep-copy to avoid side effects.
  • [DDC-1912] - [GH-393] Updated the classmetadata factory for Common 2.3
  • [DDC-1915] - [GH-396] DDC-1893 - Updating configuration to reflect latest Doctrine Common changes
  • [DDC-1917] - [GH-397] Cleanup/removing deprecated metadata drivers
  • [DDC-1919] - Doctrine fails to escape entity with reserved name in various situations
  • [DDC-1925] - Bug in UnitOfWork and ManyToMany relations
  • [DDC-1937] - [GH-405] Add possibility to cache annotations wih APC
  • [DDC-1939] - Trying to save ManyToMany relatrionship
  • [DDC-1941] - [GH-407] DDC-1939 - Removing references to non-existing AssociationMapping class
  • [DDC-1946] - [GH-409] added failing test for refresh with eager fetching
  • [DDC-1951] - [GH-411] Added the new DBAL 2.3 types in the EntityGenerator typehint map
  • [DDC-1961] - BC Break: Explicit parameter type definitions are discarded when using AbstractQuery::setParameter
  • [DDC-1962] - [GH-416] [DDC-1961] Fixed parameter type support in Parameter
  • [DDC-1964] - [GH-417] Remove unused use statement
  • [DDC-1977] - Undefined index in ParameterTypeInferer
  • [DDC-1982] - [GH-424] Create the setCustomHydrationMode function
  • [DDC-1985] - Call to undefined method ProxyException::proxyDirectoryNotWritable
  • [DDC-1990] - [GH-427] Fix ORMInvalidArgumentException factory methods with return instead of throw
  • [DDC-2003] - DateTime conditions in Criteria objects result in errors
  • [DDC-2005] - [GH-433] DDC-2003 - DateTime conditions in Criteria objects result in errors
  • [DDC-2014] - [GH-436] Comment fixes
  • [DDC-2015] - [GH-437] Fixes PersistentCollection::matching() when collection is not initialize...
  • [DDC-2026] - [GH-442] Remove unused code
  • [DDC-2027] - [GH-443] Allow 'nullable' attribute to be used during XML export
  • [DDC-2080] - Entity's association changes after first call
  • [DDC-2721] - CLONE - doctrine-mapping.xsd sequence relation-entities

Documentation

  • [DDC-1949] - [GH-410] [2.3] Use dHelperSet in cli-config.php

Improvement

  • [DDC-889] - Not a mapped superclass or id not found exceptions should mention parent classes
  • [DDC-954] - Look into deferring foreign key checks until flush finished
  • [DDC-1065] - Exception message unclear when persisting a null object
  • [DDC-1185] - Make default column naming strategy configurable
  • [DDC-1426] - Github-PR-115 by mpdeimos: findByXXX does not accept orderBy/limit/offset
  • [DDC-1470] - Bad discrimator value give imprecise error exception
  • [DDC-1542] - GH-221: [Inheritance] Joined: Default discriminator map
  • [DDC-1572] - LIKE expressions doesn't allow the matching pattern to be a string function
  • [DDC-1616] - SchemaTool - CreateCommand should dump "valid" SQL and omit ATTENTION line
  • [DDC-1686] - Query/Expr/Join getAlias & getJoin
  • [DDC-1697] - DQL Query with key=>value array in parameter
  • [DDC-1718] - types generated by Doctrine\ORM\Tools\EntityGenerator (in docblock) are sometimes wrong
  • [DDC-1746] - Throw Exception when setting unknown cascade option
  • [DDC-1822] - Intermediary parent for NoResult and NonUnique Exceptions
  • [DDC-1845] - Implements a QuoteStrategy to fix quote problems
  • [DDC-1931] - Cache $oid and $className through method calls in UoW internals

New Feature

  • [DDC-451] - Add GUID/UUID Id Generator
  • [DDC-559] - Allow table name and column names to be modified by a user-supplied inflector
  • [DDC-657] - DateTime objects casted to string in query results
  • [DDC-807] - Adding columnDefinition for @DiscriminatorColumn
  • [DDC-852] - An easy way of generally setting the default id name/foreign key name suffix doctrine uses
  • [DDC-964] - Implement @AssociationOverride and @FieldOverride for MappedSuperclasses
  • [DDC-1412] - DriverChain defaultDriver
  • [DDC-1637] - Linq-like Filter API for collections
  • [DDC-1663] - Implement @NamedNativeQuery and @SqlResultSetMapping
  • [DDC-1708] - [GH-304] by jwage: Allow flushing of many entities by passing an array of entities.
  • [DDC-1766] - Reintroduce old result cache as hydration cache

Sub-task

  • [DDC-369] - Bulk-Delete on Self-Referencing CTI fails with FK Error
  • [DDC-890] - Association mapping 'One-To-Many, Self-referencing' with cascade and removes fk onDelete=restrict

Edit/Copy Release Notes

The text area below allows the project release notes to be edited and copied to another document.