V
V
Vanik Khachatryan2018-05-22 15:49:39
Phalcon
Vanik Khachatryan, 2018-05-22 15:49:39

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']);
    }

}

the connection is simply ignored.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question