[help] thinkphp5 hasOne cannot set model alias definition

setting model alias definition has no effect =!

Model:

public function cate(){
        return $this->hasOne("TestCategory","id","category",["id"=>"category_id","title"=>"category_title"]);
    }

Controller:

$books = TestBookModel::get($id);
       $books->cate;
       dump($books->toarray());

Table: thinkphp_test_book
5b6c02a5d7455.jpg
:thinkphp_test_category
5b6c02b164854.jpg
:
5b6c02b9960a1.jpg
:
5b6c02c4b0dab.jpg
:
5b6c02cec5f1c.jpg

Php
Apr.07,2021
Menu