/** * save current images and its titles and return id for further saving at album_has_image table * @param array $images - our form field with set of images */ protected function saveTitlesForCurrentImages($images) { if (isset($images['current']['ids'])) { ImagesPeer::setImageTitleById($images['current']['title'], $images['current']['ids']); } return $images; }