Model User:
<?php
use Phalcon\Mvc\Model;
class Users extends Model
{
public function initialize()
{
$this->hasOne('id','Profil','owner');
}
}
Model Profil:
<?php
use Phalcon\Mvc\Model;
class Profil extends Model
{
public function initialize()
{
$this->hasOne('owner','Users','id');
}
}
and
$user = Users::findFirst(1);
$profil = $user->getProfil();
$proifl->text = 'blablalbla';
$profil->save();
$profil->save(); OR $user->save();
Not saving...