/** * create an object with a defined relation to this one. * * @param BaseTable $obj * @return BaseTable */ public final function create(BaseTable $obj) { return $obj->{'set' . Builder::camelCase(static::$relations[Builder::unCamelCase(get_class($obj))]['fk'])}($this->id); }