Skip to content
This repository
tree: af62e7f046
Fetching contributors…

Cannot retrieve contributors at this time

file 263 lines (257 sloc) 20.885 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
# Changelog Of The Propel 1.6 Branch #

## 2011-10-13: Version 1.6.3 ##

* [54b1941] [generator] Fix typos in new buildtime validation service
* [8663103] [generator] Introducing buildtime schema validation. All schema validation cannot be done in XSD. For more complex validations, some PHP processing is required. This patch moves validation logic into a simple and independent validation service. It processes the whole schema in order to output all error messages at once. Closes #3. Closes #96.
* [a20ad17] Added a unit test to cover changes in commit e47f63b8f224b0b85b91f86f414f223e023ff73c
* [275174c] Fix Behaviors adding a table when they are added as database behavior. Closes #136.
* [dbb0d4a] [enum type] Fix isModified() returns true when setting the existing value on a just hydrated object. Closes #139.
* [e47f63b] Fixed ModelCriteria::replaceNames() to handle namespaced model classes
* [83f8c5f] Properly define non-integer single PKs when using SQLite.
* [7a715cd] unit testing fo isTimestamp
* [4b330e8] fix isTimestamp.
* [31850e6] Bugfix: Syntaxerror if $archivedAtColumn==true
* [7b8f7b0] Fix indentation in generated Query classes. The QueryBuilder was using spaces instead of tabs to indent code. This is now fixed.
* [20fc5ac] Fix getId() in generated doInsert() for Postgresql
* [8c5d966] Fixed CS
* [cd0f9e2] Switched identifier escaping at buildtime to off by default. This harmonizes the buildtime and runtime settings, and removes the need to set disableidentifierquoting to true in build.properties for Postgresql. Make sure to rebuild your model and SQL after the update
* [59a8828] adjust AR generated code formatting
* [7a2a059] Fixed #118, #119
* [faf7305] Fixed trailing whitespaces due to PR #116
* [53a9ed2] [turbo] Add explicit comment to generated code
* [5ecdda8] [turbo] Final code formatting glitches
* [ed60055] [turbo] Fix doInsert for PKs using sequences
* [36c78f6] Implemented One-To-Many setters.
* [3dc5e3f] Fixed commit 5b1d911fee5ae0ef6321880bc7861dc5227cea45
* [59a2abd] [turbo] Move logic for pk retrieval after insertion to buildtime
* [39e0456] Fix bug that would cause a transaction to leak if an Exception that isn't PropelException is thrown during preSave, preInsert, preUpdate, doSave, postInsert, postUpdate, postSave.
* [9732e08] Fixed builder (setter collection)
* [bd41e0d] [turbo] Align the syntax of recent additions to ObjectBuilder. Passing the script by reference is a bad habit, but not doing so for only a few methods is confusing. In the future, if a refactoring of the builders occurs, let us not reproduce that mistake
* [3437149] [turbo behavior] Move the doInsert() acceleration to the core. And now that there is nothing in the turbo behavior, it is removed. doInsert() acceleration is disabled on Mssql platforms, due to very exotic bindings in adapter classes
* [14bcdaf] [turbo behavior] Bugfix for namespaced classes and query_cache behavior
* [5bd66f6] [turbo behavior] Move the findPk() acceleration to the core. The behavior now only accelerates doInsert() (until we find a way to marge this into the core, too).
* [d231655] Revert "Fixed the name of generated SQL files if package contains slashes"
* [01b03f7] [turbo behavior] Use the correct binding code in accelerated findPk(). This is to accomodate cases where PK columns have special bindings (like timestamps... ot blobs, who knows). I took advantage of this to refactor the custom binding code in the adapters.
* [977dcd0] [turbo behavior] Refactor ModelCriteria::find(), findOne(), and findPk() to allow preSelect() hook to be called just like the other model hooks. This refactoring allows the turbo behavior to accelerate findPk() on every model, even those using a preSelect() hook. It also harmonizes the AR and Query apis: just like ActiveRecord::save() calls doInsert() or doUpdate(), ActiveQuery::find() calls doSelect(), and ActiveQuery::count() calls doCount().
* [a9a2f0e] [turbo behavior] slightly better way to have binding type and value preparation depending on the platform
* [9b0690f] [turbo behavior] Change insert acceleration strategy to allow exotic bindings. This is necessary to let Oracle, for instance, use bindParam() instead of bindValue() for CLOBs.
* [2339b9d] Fixed commit 46d928f0a8f8e92484d9a031d986d0cc05c100a6
* [e94b626] fix coding standard
* [25b86b1] [turbo behavior] Make each acceleration optional
* [46d928f] the semicolons are missing between sql request in $statementsToInsert
* [f38f6d0] [turbo behavior] Accelerate save() queries
* [489353b] [turbo behavior] refactored generated ActiveRecord::doSave() to make it easier to extend (end)
* [2ce3ef7] [turbo behavior] refactor generated ActiveRecord::doSave() to make it easier to extend (WIP)
* [970cf4a] Fixed logical error on save() for setter collections.
* [5b1d911] Fixed the behavior of 'disconnectedEscapeText()' for MySQL platform. Fixes #108
* [77a166c] Added missing declared class. Refs #103.
* [d22d141] Removed useless function (setter collection)
* [b447f15] Added a new protected method 'doAdd*()'
* [9b44292] Fixed commit f267fdff5979a04b0a43466bc2dc89935831210d
* [abe38f2] [turbo behavior] Use correct binding for PK search. Backed by unit tests.
* [f72df02] Added more unit tests for the 'diff' method
* [f267fdf] Avoid too many deletes for scheduled for deletion objects (collection setter)
* [3e08824] Kept BC with PHP version under 5.3 (lcfirst() hack)
* [f442b35] Moved the diff logic to a better place (in PropelCollection)
* [fca956c] Added insert SQL ability to the PropelSqlManager
* [e4c37ca] Added more unit tests for the collection setter
* [9e6ad1d] Fixed setter signature
* [5eda115] Refactored collection setters thanks to fzaninotto
* [51729f7] Added more unit tests for the collection setter
* [594708e] Added auto save for related objects after using the collection setter (N-N)
* [9efdf58] Passed the connection to the setter
* [8e657e0] Added more tests for collection setter
* [c6db541] Added a workaround for collection setters
* [293a8b8] Added unit tests to bootstrap the work around collection setters
* [02f87a1] Fixed indentation
* [398c030] Added convenient methods to the Table class
* [6a7c4d1] [turbo behavior] Accelerate simple findPk() queries
* [9d9b246] Moved logic for the new build SQL task in a dedicated class.
* [31c5462] fix generate sql file when there is multiple schema.xml for the same connection
* [b5e5602] Make XSD validation for sqlType less restrictive. Fixes #97.
* [8dc4be5] Added a whitelist for charsets in MySQL adapter and PHP < 5.3.6.
* [5a40249] Fixed deprecated method since 5.3.0
* [fd80913] Removed WHATS_NEW file
* [abd6c76] Fixed INSTALL
* [4ca8cd6] Fixed maintainer for PEAR package task
* [c1febde] Bumped version to 1.6.3-dev

## 2011-09-14: Version 1.6.2 ##

* [cb2009a] [delegate behavior] Fix incorrect handling of tablePrefix Refs #63.
* [9aef5f6] [i18n] Added few tests to prove there is no bug with relations.
* [4cf9dc7] Fixed #93
* [65139a1] [PropelSQLTask] Fixed SQL filenames
* [b27fef5] Revert "Fixed possibility issue on SQL filenames based on package values"
* [0183944] fixed nested _if using a proxy
* [26fc546] removed underscore for private methods
* [4f6c495] fixed typo
* [c0ba5c5] fixed nested fluent condition
* [0202db4] [Tests] Preparing PHPUnit 3.6.0 release.
* [bffd323] Fixed failing unit tests complaining about an "Undefined index: datasources" when running some tests individually
* [6a0e030] Fixed version column needs to be required for mssql. The `versionable` behavior adds the version table by copying the main table, which already contains the version column. The problem is, as the version column becomes part of the PK of the version table, it must be required. Only MSSQL seems to complay about this, but it must be fixed anyway.
* [7c1d1b4] Fixed possibility issue on SQL filenames based on package values
* [d9adc1f] Fix issue with empty migration SQL generated when foreign key has skipSql
* [0e2463c] Added composer.json file
* [f46b54a] Fixed the name of generated SQL files if package contains slashes
* [6c2b8ef] Fix incorrectly generated migration SQL for pgsql if existing default value is removed from schema
* [672eb1f] Fixed commit 5c77b2a1e3efdab03e93
* [5c77b2a] Allow configuration of usePrefix and includeLazyLoadColumns when exporting a PropelCollection
* [3bc2e78] Added usage of connection in PropelModelPager. Fixes #74
* [ef1ef22] Updated license
* [691b648] Removed the docs/ directory as the documentation has its own repository
* [d4e9a51] should be `phpunit`
* [f581bae] fixed #70 : setByPosition method in enum
* [3269069] Fix test documentation
* [f6b6403] default sh shell is no more bash in debian.
* [d92e3a7] [archivable behavior] Added more tests to cover methods added in 9f7a0670184da5600d6abc4c79c82737f6fbad68
* [eb4caf3] [archivable behavior] Fixed minor typos
* [4c10206] Allowed to use '/' in package values
* [c23b6cb] [archivable behavior] Fixed code formatting issues
* [5e58668] [archivable behavior] Refactored method generation to use templates
* [9f7a067] [archivable behavior] Further improved the ActiveRecord API
* [2de49d5] [archivable behavior] Fixed typos in the documentation
* [3a3c5f8] [archivable behavior] Added documentation and deprecated soft_delete
* [97d383c] [archivable behavior] Fixed the archiveOnDelete implementation when the addHooks build property is turned off
* [ca6f957] [archivable behavior] Made the preDelete hook play well with other preDelete hooks. Previous hooks or behaviors may interrupt the course of the delete() method. This behavior (and other behaviors implementing the preDelete hook) must only execute the code if the $ret value is true.
* [05633de] [archivable behavior] Refactored archiveOnDelete to avoid the need for static attributes
* [328a32b] [archivable behavior] Fixed generated ActiveRecord::delete() behaves differently when addHooks build property is disabled
* [2dc16dc] [archivable behavior] Refactored ActiveRecord and ActiveQuery APIs to harmonize them
* [a7e00af] [archivable behavior] Implemented archiving on `ActiveQuery::update()` and `::delete()`
* [3fd6823] [archivable behavior] Fixed a rare bug in `ModelCriteria::update()` causing "undefined index: datasources" error message
* [b818915] [archivable behavior] Added generated ActiveQuery::archive() method
* [f1a163d] [archivable behavior] split ArchivableBehavior class to make it more readable and ready for future additions
* [5d6e4b0] [archivable behavior] Added the ability to use a cutom archive class.
* [5088e39] [archivable behavior] Added generated ActiveRecord::populateFromArchive() method
* [182af0c] [archivable behavior] Initial commit
* [ce59915] [Tests] More tests for MysqlSchemaParser
* [20d407a] Changed visibility to be less 'open'. Related commit: 381e378cb17b388765dfbb5a3241dacbff449323
* [dd10eec] [Tests] fixed script to handle reverse fixtures
* [d64741a] Fixed the test file's syntax
* [9584188] Fixed unit test
* [8b20446] used 'SHOW FULL TABLES' instead of the previous one to handle multiple database
* [acccc26] Excluded read only tables from being counted
* [1cd82d6] handle views when using diff command
* [7f89e83] Added unit test for MySQL schema parser
* [8470dba] Added fixtures for MySQL reverse unit tests
* [f75334c] Changed prototype to use the interface instead of an implementation class
* [381e378] Changed visibility of simpleXmlToArray method in PropelConvertConfTask in order to use it in tests
* [54ce432] Removed stray testing stuff that got left behind
* [db4e041] FIX: Check that platform exists before using it
* [be563e8] Fixed false positive in PostgreSQL migrations where generator would generate varchar-fields without explicit size as VARCHAR(255)
* [7c84b79] Fixed postDelete hook in soft delete behavior
* [39e3709] [SoftDeleteBehavior] Fixed missing post hook call
* [8fc39e1] Added test to prove post hook is not fired on soft deleted objects.
* [c5c30e0] set sequence name configurable
* [082d27a] Added strict assertions
* [1ad20fb] added unit-test for Table::appendXml (namespace & package attributes)
* [3addf99] serialize namespace too
* [76a3841] store table`s package name in Xml
* [ff673c0] Added a tiny shell script to reset test fixtures
* [3d6d4bd] fixed naming and default values in unit test
* [67a77bf] Fixed bug in PhpNameGenerator. The default name convertor for table and column names is NameGenerator::CONV_METHOD_UNDERSCORE. This method has a slight bug resulting in an incorrect phpName for table using "_0" as a prefix:
* [04fe003] fix usage of undefined variable
* [ceb610f] `level` is reserved keywork in oracle
* [57a0f2c] pass vendor`s type to VentorInfo::__construct in XMLElement::getVendorInfoForType()
* [a3aaa76] detect autoincrement via sequences
* [7c84546] [delegate behavior] Documented the fact that, finally, delegate behavior can handle inheritance over several levels
* [8290ed5] [delegate behavior] Changed class table inheritance examples to show that the behavior is much more powerful than previously thought. Refs #40
* [1f4ce85] Fixed MySQL type for a BOOLEAN
* [5e7d765] [delegate behavior] Fixed typo in behavior documentation
* [4ee22c0] [delegate behavior] Fixed coding standards
* [4b327c6] [delegate behavior] Fixed wrong file permissions (old samba config)
* [fe2ce45] [delegate behavior] Throwing exception at buildtime if the delegate table has a one-to-many relationship with the main table
* [87ed930] [delegate behavior] provided support for delegation by way of a many-to-one relationship
* [9583e6b] [delegate behavior] Refactoretests to leave less trace
* [197b533] documented the delegate behavior
* [ca09d1d] Introducing Delegate behavior, for class table inheritance fans
* [a78212c] Fixed bad formatting in generated query classes
* [184e63f] Removed __call() from generted ActiveRecord classes.
* [0e454c5] Avoid getClassname() to trigger registered autoloaders for nothing.
* [74cd5eb] Added the ability to define full qualified classnames in build properties.
* [e1662d0] Reverted change on the TINYINT default size (MysqlSchemaParser)
* [a2965d4] Fixed CS
* [9521482] Fixed TINYINT interpretation in MysqlSchemaParser.
* [e939c2e] Improved generated code for findOneOrCreate() method with ENUM and ARRAY types.
* [594d44e] Added missing link to the StandardEnglishPluralizer class
* [61deedb] Added more unit tests for the StandardEnglishPluralizer + Fixed special cases.
* [5288e48] Improved the StandardEnglishPluralizer. Fixed issue #4
* [22159b2] Fixed double left-join & "with" issue when a third table is joined and "withed"
* [ec41624] Fixed phpdoc in parser/
* [73a7d21] Fixed phpdoc in validator/
* [10f5dd5] Added unit tests for issue #35 and PR #37
* [9e62f3c] One-line fix for issue #35 (https://github.com/propelorm/Propel/issues/35)
* [e84f5fa] Set limit parameter to 0 (like intially done) if clear() is called
* [b377ebf] Added unit tests for Criteria methods: clear() and limit()
* [5ce8fa7] Remove unneeded @returns, Fix @param order
* [176c68f] Fix typo on docblock
* [425b0f2] Improve Behavior doc blocks
* [ffd8192] fixed unit test to check identity rather than equality
* [f5f9d9a] Made generated addRefFk method return the current AR object to allow fluent interface
* [13611a2] Fixed Typo in the doc mixing ModelCriteria::addSelectQuery() with ModelCriteria::getSelectQuery()
* [aaff75d] Removed trailing whitespace, unwanted tabs/spaces and so on...
* [698ce9b] Improved the patch for MySQL driver (possibly subject to sql injections)
* [54ef274] Added a new unit tests for DBMySQL class
* [cd547f2] MySQL Driver possibly subject to sql injections with PDO::quote()
* [cd99264] Fixed wrong peer name in soft_delete behaviour with classPrefix
* [2d0f101] Fixed Ymd format for PropelDateTime::newInstance
* [b006238] Fixed permissions for scripts
* [3e13b29] Fixed tests for PropelDateTime::newInstance
* [aa0393f] Add support for Ymd format for PropelDateTime::newInstance
* [35822d7] Fixed permissions for both directories and files.
* [76fb103] Fixed scandir warning if no valid directory given.
* [5ade9ff] added more generated files from tests to .gitignore
* [5c5816e] Added .gitignore to ignore generated files for unit tests
* [23270ef] Added a unit test for the previous commit
* [e86b3c3] Always sort columns when comparing composite foreign-keys
* [3dcd7b2] reproduced default isModified() logic for other mutators
* [e1ed026] Fix for ActiveRecord::isModified() in limit cases with default values
* [5f2ff4e] added missing validator in autoload map
* [7164161] Remove rewind on CLOB to fixe warning
* [4eb059d] Fixe CS + restore BLOB insert + Add rewind before CLOB bindParam
* [e693f62] Fixed Error in logic of _if/_elseif/_else. Based on a patch by lvu, updated to Propel standards. Closes #12
* [6f536c6] Fixe Oracle CLOB save by using PDO bindParam
* [ea8f4c8] [1.6] Fixed failing test after updating test schema (refs #1319)
* [258799f] [1.6] Fixed undefined method error when calling with() on a ModelCriteria having a relation with a special name (closes #1477)
* [9eac2ed] [1.6] Fixed logging of methods (refs #1468)
* [94193c6] [1.6] Removed old configuration test (refs #1468)
* [af7ac9c] [1.6] fixed regression in PropelConfiguration when setting an array value via setParameter (closes #1468)
* [ff2b8c1] [1.6] Fixed notice about undefined hydrationChain when using joinWith() twice and the middle entity is null (closes #1319)
* [0cee299] [1.6] Removed unused logging configuration setting (closes #1453)
* [a5ab232] [1.6] Fixed Conflict between concrete inheritance and namespaces (closes #1464)
* [eba3b40] [1.6] Fixed phpDoc for Criteria::addAscendingOrderByColumn() (patch by bertjan) (closes #1454)
* [c6b53c9] [1.6] Removed many false positive in migrations (closes #1451)
* [1d828e5] [1.6] Fixed issue with autoincrement pks when calling diff task in migrations (closes #1456)
* [942efab] [1.6] Switched to dev version number

## 2011-06-14: Version 1.6.1 ##

* [2318] Fixed handling of custom sqlType in migrations (closes #1348)
* [2317] fixed `PropelObjectCollection::populateRelation()` when using classPrefix or namespaces (based on a patch by mattleff) (closes #1402)
* [2316] Made `PropelObjectCollection::populateRelation()` initialize empty collections on entities having no related entity in a one-to-many relationship (closes #1182)
* [2315] Added all supported MySQL table options (closes #1447)
* [2314] Fixed phpDoc of generated ActiveRecord getter and setter methods for nested set models
* [2313] Fixed autoloading of namespaced models when using `useQuery()` (closes #1444)
* [2312] Fixed formatting issues in generated TableMap classes
* [2311] Fixed location of FKeys in PostgreSQL migrations (closes #1411)
* [2310] Fixed handling of empty string values on boolean columns for ActiveRecord mutator and ActiveQuery filter (closes #1437)
* [2309] fixed inconsistent EOL types in builder classes (closes #1436)
* [2308] fixed inconsistent EOL types in builder classes (closes #1436)
* [2307] Fixed "Nesting level too deep" error when similar schemas are used (patch from gepo) (closes #1426)
* [2306] Improved runtime/exception phpDoc formatting (patch by kupokomapa) (closes #1429)
* [2305] Improved runtime/logger phpDoc formatting (patch by kupokomapa) (closes #1428)
* [2304] Improved runtime/connection phpDoc blocks (based on a patch by kupokomapa) (closes #1425)
* [2303] Added `ModelCriteria::getSelect()` (closes #1412)
* [2302] Added `PropelOnDemandCollection::toArray()` (closes #1415)
* [2301] Fixed subquery bug with select (closes #1417)
* [2300] Added test to prove subquery bug with select (refs #1417)
* [2299] Fixed `PropelObjectCollection` and `PropelArrayCollection` would throw a fatal error when calling save() in conjunction with readOnly entities (closes #1422)
* [2298] Improved runtime/config phpDoc blocks (patch by kupokomapa) (closes #1424)
* [2297] Improved runtime/collections phpDoc blocks (based on a patch by kupokomapa) (closes #1423)
* [2296] Fixed coding standards in DBAdapter (closes #1421)
* [2295] Improved runtime/adapter phpDoc blocks (patch by kupokomapa) (refs #1421)
* [2294] Fixed soft delete via Peer class executes a wrong query (closes #1405)
* [2293] Fixed `forceDelete()` enables soft delete behavior even when disabled (closes #1404)
* [2292] Fixed tests under PHP 5.2 (closes #1388)
* [2291] Fixed minor formatting issue in generated Peer class
* [2290] Fixed generated column filters for enum columns when passed an arry (closes #1381)
* [2289] Fixed strict standards error in soft delete behavior (closes #1398)
* [2288] Added missing `findRoots()` method to nested_set behavior with scope (closes #1397)
* [2287] Fixed bad binding with SQLSRV adapter (refs #1199) (closes #1400)
* [2286] Fixed DATE column with defaultValue of 0000-00-00 generates fatal (closes #1389)
* [2285] Fixed typo in README
Something went wrong with that request. Please try again.