test
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
709 B

<?php
namespace We7\Table\Uni;
class Account extends \We7Table {
protected $tableName = 'uni_account';
protected $primaryKey = 'uniacid';
protected $field = array(
'groupid',
'default_acid',
'name',
'description',
'rank',
'createtime',
'title_initial',
'create_uid',
'logo',
'qrcode'
);
protected $default = array(
'groupid' => '0',
'default_acid' => '0',
'name' => '',
'description' => '',
'rank' => '0',
'createtime' => '',
'title_initial' => '',
'create_uid' => '0',
'logo' => '',
'qrcode' => ''
);
public function searchWithAccount() {
return $this->query->from($this->tableName, 'a')
->leftjoin('account', 'b')
->on('a.uniacid', 'b.uniacid');
}
}