Dropdown on CRUD

Hi, I created a simple model to test the CRUD with referencing table, this is the code used:

require’vendor/autoload.php’;
$dsn = ‘mysql://root@localhost/agile’;
$app = new \atk4\ui\App(‘CRUD TEST’);
$app->initLayout(‘centered’);
$db = $app->dbConnect($dsn);

// Classe Cliente
class Cliente extends \atk4\data\Model {
public $table = ‘cliente’;
function init() {
parent::init();
$this->addfield(‘nomecliente’);
$this->addfield(‘id_profilo’, [‘caption’ => ‘Profilo Utente’, ‘ui’ => [‘form’ =>[‘DropDown’]]]);
$this->hasOne(‘id_profilo’, [new Profilo(), ‘their_field’ => ‘id’, ‘our_field’ => ‘id_profilo’]); }
}

// Class profilo
class Profilo extends \atk4\data\Model {
public $table = ‘profilo’;
function init() {
parent::init();
$this->addfield(‘nomeprofilo’);
$this->hasMany(‘cliente’, new Cliente());
}
}

// Crea il Crud
$clienti = new Cliente($db);
$crud = $app->add([‘Crud’,]);
$crud->setmodel($clienti);

bud the dropdown list of ‘profilo’ is empty.

Where is the problem…?
Thanks for your support.

I think inside of this you need to define the model that the DropDown is to use?