class School extends ActiveRecord\Model }
class Person extends ActiveRecord\Model {
static $belongs_to = array(
array('school')
);
}
Example using options:
class School extends ActiveRecord\Model }
class Person extends ActiveRecord\Model {
static $belongs_to = array(
array('school', 'primary_key' => 'school_id')
);
}
Mostrar archivo
Open project: jpfuentes2/php-activerecord
Method | Description | |
---|---|---|
__construct ( $options = [] ) | ||
__get ( $name ) | ||
load ( activerecord\Model $model ) | ||
load_eagerly ( $models = [], $attributes, $includes, |
public load_eagerly ( $models = [], $attributes, $includes, |
||
$table |