public function delete(Doctrine_Connection $conn = null)
 {
     foreach ($this->getStockentries() as $entry) {
         $entry->cascadeDelete($conn);
     }
     return parent::delete($conn);
 }