JREAM
2/5/2014 - 8:27 PM

Phalcon is so elegant

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
// --------------------------------------------------------------