Phalcon is so elegant
<?php
class User extends \Phalcon\Mvc\Model
{
public function initialize()
{
$this->skipAttributesOnCreate(['reset_key']);
$this->hasMany('id', 'Project', 'user_id');
$this->hasMany('id', 'UserAction', 'user_id');
$this->hasMany('id', 'UserPurchase', 'user_id');
$this->hasMany('id', 'UserSupport', 'user_id');
}
// --------------------------------------------------------------
}
// End of File
// --------------------------------------------------------------