2 namespace Auction\DataBin;
10 class Bid extends \Workspace\Service\DataBin
16 protected $meta = array(
18 'DatasetName' => 'bids',
19 'Entity' => '\Auction\Entity\Bid',
20 'JobField' => 'auction',
21 'References' => array(
22 'auction' => '\Auction\Entity\Auction',
23 'company' => '\Company\Entity\Company',
24 'profile' => '\User\Entity\Profile',
25 'autoBid' => '\Auction\Entity\AutoBid'
27 'Dependants' => array()
32 protected $metaCreate = array(
34 'Contract' => 'Recurring',
35 'ConditionalContract' => array(
36 'noBidOnExpiredAuction'
38 'ExecuteAfter' => array(
41 'RequiredInput' => array(
46 'OptionalInput' => array()
51 protected $metaGrid = array(
54 'Builder' => '\Auction\Report\AuctionGrid',
55 'Writer' => '\Utility\Export\ExcelReport',
56 'Output' => 'Download',
57 'Contract' => 'Recurring',
60 'ExportToExcel' => false
63 'RequiredInput' => array(),
64 'OptionalInput' => array(
66 'NumberOfRecords' => 'Integer',
73 'NumberOfRecords' => 1000,
74 'Query' => 'SELECT [SELECTION]
75 FROM \Auction\Entity\Bid bid
76 JOIN bid.company company
77 JOIN bid.profile profile
78 LEFT JOIN bid.autoBid autoBid
80 'Selection' => 'bid, autoBid, company, profile',
82 'OrderBy' => array('bid.amount' => 'DESC'),
86 'created' => 'DateTime',
97 'amount' => 'DateTime'