Skip to content

Instantly share code, notes, and snippets.

@coma
Created June 2, 2012 20:09
Show Gist options
  • Save coma/2859780 to your computer and use it in GitHub Desktop.
Save coma/2859780 to your computer and use it in GitHub Desktop.
public function setPictures($pictures) {
$this->getPictures()->clear();
foreach ($pictures as $picture) {
$this->addPicture($picture);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment