public function setUp()
 {
     parent::setUp();
     $this->hasOne('Loans', array('local' => 'record_id', 'foreign' => 'id'));
 }