public function removePhoto($photo)
    {
        $photos = AnHelperArray::getIterator($photo);

        foreach ($photos as $photo) {
            if ($edge = $this->photos->find($photo)) {
                $edge->delete();
            }
        }
    }
public function removePhoto($photo)
    {
        $photos = AnHelperArray::getIterator($photo);

        foreach ($photos as $photo) {
            if ($edge = $this->photos->find($photo)) {
                $edge->delete();
            }
        }
    }
public function removePhoto ( $ photo ) { $ photos = AnHelperArray :: getIterator ( $ photo ) ; foreach ( $ photos as $ photo ) { if ( $ edge = $ this -> photos -> find ( $ photo ) ) { $ edge -> delete ( ) ; } } }
Removes a photo or list of photos from the set.

@param $photo a ComPhotosDomainEntityPhoto object
Removes a photo or list of photos from the set .