mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 02:22:48 +08:00
开始引入curd
This commit is contained in:
5
app/admin/service/curd/templates/model/relation.code
Normal file
5
app/admin/service/curd/templates/model/relation.code
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
public function {{relationMethod}}()
|
||||
{
|
||||
return $this->belongsTo('{{relationModel}}', '{{foreignKey}}', '{{primaryKey}}');
|
||||
}
|
||||
Reference in New Issue
Block a user