Changeset 4512
- Timestamp:
- 06/12/08 19:00:41 (13 months ago)
- Files:
-
- 1 modified
-
branches/0.11/lib/Doctrine/Collection.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/lib/Doctrine/Collection.php
r4401 r4512 850 850 * @return Doctrine_Collection 851 851 */ 852 public function delete(Doctrine_Connection $conn = null )852 public function delete(Doctrine_Connection $conn = null, $clearColl = true) 853 853 { 854 854 if ($conn == null) { … … 864 864 865 865 $conn->commit(); 866 867 $this->data = array(); 866 867 if ($clearColl) { 868 $this->clear(); 869 } 868 870 869 871 return $this; 870 872 } 871 872 873 874 /** 875 * Clears the collection. 876 * 877 * @return void 878 */ 879 public function clear() 880 { 881 $this->data = array(); 882 } 883 884 /** 885 * Frees the resources used by the collection. 886 * WARNING: After invoking free() the collection is no longer considered to 887 * be in a useable state. Subsequent usage may result in unexpected behavior. 888 * 889 * @return void 890 */ 873 891 public function free($deep = false) 874 892 {