12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?php
- /**
- *
- * PHP Pro Bid $Id$ YJchxnH0uQ5jd3Aqxrw/zbzpGOURwX9sAwQ2lfy1W2s=
- *
- * @link http://www.phpprobid.com
- * @copyright Copyright (c) 2015 Online Ventures Software & CodeCube SRL
- * @license http://www.phpprobid.com/license Commercial License
- *
- * @version 7.6
- */
- /**
- * offers table
- */
- namespace Ppb\Db\Table;
- use Cube\Db\Table\AbstractTable;
- class Offers extends AbstractTable
- {
- /**
- *
- * table name
- *
- * @var string
- */
- protected $_name = 'offers';
- /**
- *
- * primary key
- *
- * @var string
- */
- protected $_primary = 'id';
- /**
- *
- * class name for row
- *
- * @var string
- */
- protected $_rowClass = '\Ppb\Db\Table\Row\Offer';
- /**
- * class name for rowset
- *
- * @var string
- */
- protected $_rowsetClass = '\Ppb\Db\Table\Rowset\Offers';
- /**
- *
- * reference map
- *
- * @var array
- */
- protected $_referenceMap = array(
- 'User' => array(
- self::COLUMNS => 'user_id',
- self::REF_TABLE_CLASS => '\Ppb\Db\Table\Users',
- self::REF_COLUMNS => 'id',
- ),
- 'Receiver' => array(
- self::COLUMNS => 'receiver_id',
- self::REF_TABLE_CLASS => '\Ppb\Db\Table\Users',
- self::REF_COLUMNS => 'id',
- ),
- 'Listing' => array(
- self::COLUMNS => 'listing_id',
- self::REF_TABLE_CLASS => '\Ppb\Db\Table\Listings',
- self::REF_COLUMNS => 'id',
- ),
- 'Topic' => array(
- self::COLUMNS => 'topic_id',
- self::REF_TABLE_CLASS => '\Ppb\Db\Table\Offers',
- self::REF_COLUMNS => 'topic_id',
- ),
- );
- /**
- *
- * dependent tables
- *
- * @var array
- */
- protected $_dependentTables = array(
- '\Ppb\Db\Table\Offers',
- );
- }
|