Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##Albums.php
- class AlbumsTable extends Doctrine_Table
- {
- public function getPriceid($albumid)
- {
- return Doctrine_Query::create()
- ->select('a.id, a.priceid')
- ->from('Albums a')
- ->where('a.id = ?', $albumid)
- ->setHydrationMode(Doctrine::HYDRATE_ARRAY)
- ->fetchOne();
- }
- }
Add Comment
Please, Sign In to add comment