getTable()->getCompositePaths(); $a = array_merge(array($coll->getTable()->getComponentName()),$a); $graph = new Doctrine_DQL_Parser($this); foreach($coll as $k=>$record) { switch($record->getState()): case Doctrine_Record::STATE_DIRTY: case Doctrine_Record::STATE_CLEAN: $ids[] = $record->getID(); break; endswitch; } if(empty($ids)) return array(); $graph->parseQuery("FROM ".implode(", ",$a)." WHERE ".$coll->getTable()->getTableName().".id IN(".implode(", ",$ids).")"); $query = $graph->buildDelete(); $this->getDBH()->query($query); return $ids; } */ } ?>