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