function photo_get_photos($entity, $entity_id) { // Retrieve the photos associated with the entity return sfPhotoGalleryPeer::getPhotos($entity, $entity_id); }
public function getPhotos() { return sfPhotoGalleryPeer::getPhotos('project', $this->getId()); }
public function getPhotos() { return sfPhotoGalleryPeer::getPhotos('User', $this->getUserId()); }