function index() { $peer = new GalleryCollectionPeer(); return ActiveRecordUtils::toArray($peer->find()); }