<?php

/**
 * CatProduct
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @package    sf
 * @subpackage model
 * @author     Atma
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
class CatProduct extends BaseCatProduct
{
    public static function make($productId, $catId = null)
    {
        $newSelf = new self();
        $newSelf->setProductId($productId);
        $newSelf->setCatId($catId);
        if($productId > 0 && $catId > 0) {
            $newSelf->save();
        }
        return $newSelf;
    }
}
