//to be overridden if compound key /** @trows PntError */ function pntDelete() { $qh = $this->newQueryHandler(); $clsDesc = $this->getClassDescriptor(); $idProp = $clsDesc->getPropertyDescriptor('id'); $tableMap = $clsDesc->getTableMap(); reset($tableMap); foreach ($tableMap as $tableName => $ignoored) { $qh->setQueryToDeleteFrom_where_equals( $tableName , $idProp->getColumnName() , $this->id ); $qh->runQuery(null, $this->getClass()." deleting has failed"); } $clsDesc->peanutDeleted($this->id); } |