Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Delete the foodWeight representation of the recipe:
- $weight = new FoodWeight;
- $weight->food = $oldFood->id;
- $weight->find();
- while($weight->fetch()){
- if($weight->delete() === FALSE) $prog->errorClose('Could not remove the foodWeight entry: '.$oldFood->getError());
- }
- unset($weight);
- ?>
Add Comment
Please, Sign In to add comment