<?php
/*
* This file is part of the pwp package.
* (c) 2009-2010 Victor Rad' <victor.v.rad[at]gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class ImagesTable extends Doctrine_Table
{
/**
* Additional relations for backend list of images
*
* @param Doctrine_Query $q
* @return Doctrine_Query
*/
public function retrieveBackendImageList(Doctrine_Query $q)
{
$rootAlias = $q->getRootAlias();
$q->addSelect($rootAlias . '.*');
$q->addSelect('p.url portfolio_url');
$q->leftJoin($rootAlias . '.Portfolio p');
return $q;
}
}