'brand' => array(
'mapping_type' => self::BELONGS_TO,
'class_name' => 'Brand',
'foreign_key' => 'brand_id',
),
'shop' => array(
'mapping_type' => self::BELONGS_TO,
'class_name' => 'Shop',
'foreign_key' => 'user_id',
'as_fields' => 'name:shop_name',
),错误提示SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Array' in 'where clause'
错误位置
FILE: F:\WorkSpace\PhpstormProjects\zone\ThinkPHP\Library\Think\Db\Driver.class.php LINE: 169
最佳答案