Answer the question
In order to leave comments, you need to log in
Why is Phalcon Micro ignoring model linking?
<?
namespace App\Models;
use Phalcon\Mvc\Model;
use Workers;
class Accounts extends Model {
public $id;
public $login;
public $worker_id;
public function initialize() {
$this->hasOne('worker_id', Workers::class, 'id', ['alias' => 'worker']);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question