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