[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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38618-4114d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38618-4114d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?