lp:coughphp/1.4

Created by Anthony Bush and last modified
Get this branch:
bzr branch lp:coughphp/1.4
Members of CoughPHP can upload to this branch. Log in for directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
CoughPHP
Project:
CoughPHP
Status:
Experimental

Recent revisions

312. By Lewis Zhang

* Remove deprecated As_Database.
* Add additional tests

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.

308. By Anthony Bush

Fixed typo in As_SelectQuery::getSelectOptions() [Thanks to Richard Lindsey]

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.

305. By Anthony Bush

Use tabs, not spaces.

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().

303. By Anthony Bush

Fixed white-space inconsistencies in generated code.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.