Completed
Push — master ( c9c9d6...9f49ce )
by Zach
02:07
created

Users::initialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
1
<?php
2
3
namespace App\Models;
4
5
use Phalcon\Mvc\Model;
6
7
class Users extends Model
8
{
9
    public function initialize()
10
    {
11
        $this->hasMany(
12
            'id',
13
            'App\Models\Posts',
14
            'users_id',
15
            ['alias' => 'posts']
16
        );
17
    }
18
}
19