public function owns($related, $exclusive = true)
    {
        $table = ucfirst($related::getTable());
        $column = ($exclusive ? 'x' : '') . "own{$table}List";
        $this->bean->$column[] = $related->getBean();
    }
public function owns($related, $exclusive = true)
    {
        $table = ucfirst($related::getTable());
        $column = ($exclusive ? 'x' : '') . "own{$table}List";
        $this->bean->$column[] = $related->getBean();
    }
public function owns ( $ related , $ exclusive = true ) { $ table = ucfirst ( $ related :: getTable ( ) ) ; $ column = ( $ exclusive ? 'x' : '' ) . "own{$table}List" ; $ this -> bean -> $ column [ ] = $ related -> getBean ( ) ; }
Create one-to-many relationship
@param Model $related
Create one - to - many relationship