public function setUp() { parent::setUp(); $this->hasMany('ExtendedCustomer as Transporters', array('refClass' => 'CustomerPreferredTransporter', 'local' => 'transporter_id', 'foreign' => 'customer_id')); $this->hasMany('CustomerPreferredTransporter', array('local' => 'id', 'foreign' => 'transporter_id')); $this->hasMany('TransportLoad', array('local' => 'id', 'foreign' => 'transporter_id')); }
public function setUp() { parent::setUp(); $this->hasMany('CustomerPreferredTransporter', array('local' => 'id', 'foreign' => 'customer_id')); $this->hasMany('TransportLoad', array('local' => 'id', 'foreign' => 'customer_id')); }
/** * @expectedException \Exception */ public function testMisformatedJSON() { $testee = new User(); $json = "{this is wroooong: lols'}"; $testee->setUp($json); }
/** * Don't export this table to the database */ public function setUp() { parent::setUp(); $this->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_NONE); }