Skip to content

Instantly share code, notes, and snippets.

@hobodave
Created October 29, 2009 19:04
Show Gist options
  • Select an option

  • Save hobodave/221711 to your computer and use it in GitHub Desktop.

Select an option

Save hobodave/221711 to your computer and use it in GitHub Desktop.
<?php
Doctrine_Query::create()
->update('dMmLineItem li')
->set('size', 'Default')
->where('size = ?', '0')
->orWhere('size = ?', '')
->execute();
UPDATE mm_line_items SET size = Default WHERE (size = '0' OR size = '')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment