lp:coughphp/1.4
- Get this branch:
- bzr branch lp:coughphp/1.4
Branch merges
Related bugs
Related blueprints
Recent revisions
- 311. By Lewis Zhang
-
Fix CoughCollection
::sortByMethods to work properly PHP 5.3.x changes to call_user_ func_array. - 310. By Lewis Zhang
-
Fix CoughCollection
::sortByMethods to work properly PHP 5.3.x changes to call_user_ func_array. - 309. By Lewis Zhang
-
Merge branch lp:~lewiszhang/coughphp/1.4-switch-to-phpunit into lp:coughphp/1.4
- 307. By Anthony Bush
-
- Added factory-level observers so that database connections aren't required to observe.
- Added getHostAndPort() accessor for observers. - 306. By Anthony Bush
-
As_Database improvements:
- Added nested DB transaction support.
- Added num rows accessor and corresponding observer gathering.
- Improved query logger's backtrace with version using less memory.
- Fixed freeResult() warnings by no longer constructing result objects from INSERT/UPDATE/etc. queries.
- Fixed some phpDoc switcheroos. - 304. By Anthony Bush
-
- CoughCollection:
- Calling save() on a collection now returns true if all elements saved successfully.
- Changed getLast() to return null when there are no items in the collection.
- get() now behaves like remove() (works with objects).
- add() now behaves like remove() (returns added object).
- Improved robustness of removeByKey() (when null key is given).
- Improved algorithm for issuing temporary keys: adding a new object twice now adds it to the collection only once.
- CoughObject:
- Improved toggling of isNew.
- Improved save(): chains such as collection saving and reseting modified fields are only executed if save was successful.
- Fixed issue when cloning objects that make use of comparing modified fields to their original values.
- setModifiedField() now saves the original value for later retrieval; it did this before, but multiple calls to set*() would override the *true* original value.
- Added getOldFieldValue($fieldName) : use for retriving original value for a field (use when writing app-based save() triggers).
- Added isFieldDifferent($fieldName) : shortcut for finding out if a field wasn't just modified, but was modified to a different value (use when writing app-based save() triggers).
- CoughDatabaseFactory:
- Added saveToMemento() and restoreFromMemento().
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)