Guest User

Untitled

a guest
May 26th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <?php
  2. // Delete the foodWeight representation of the recipe:
  3. $weight = new FoodWeight;
  4. $weight->food = $oldFood->id;
  5. $weight->find();
  6. while($weight->fetch()){
  7. if($weight->delete() === FALSE) $prog->errorClose('Could not remove the foodWeight entry: '.$oldFood->getError());
  8. }
  9. unset($weight);
  10. ?>
Add Comment
Please, Sign In to add comment