Guest User

Untitled

a guest
May 28th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. ##Albums.php
  2. class AlbumsTable extends Doctrine_Table
  3. {
  4. public function getPriceid($albumid)
  5. {
  6. return Doctrine_Query::create()
  7. ->select('a.id, a.priceid')
  8. ->from('Albums a')
  9. ->where('a.id = ?', $albumid)
  10. ->setHydrationMode(Doctrine::HYDRATE_ARRAY)
  11. ->fetchOne();
  12. }
  13. }
Add Comment
Please, Sign In to add comment