public static function belongsTo($model, $parentColumn) {
        $r = new static(['type' => DbRelations::BELONGS_TO, 'model' => $model]);
        return $r->columnsEqual($parentColumn, $model::getDb()->getTablePk($model::getTableName()));
    }
public static function belongsTo($model, $parentColumn) {
        $r = new static(['type' => DbRelations::BELONGS_TO, 'model' => $model]);
        return $r->columnsEqual($parentColumn, $model::getDb()->getTablePk($model::getTableName()));
    }
public static function belongsTo ( $ model , $ parentColumn ) { $ r = new static ( [ 'type' => DbRelations :: BELONGS_TO , 'model' => $ model ] ) ; return $ r -> columnsEqual ( $ parentColumn , $ model :: getDb ( ) -> getTablePk ( $ model :: getTableName ( ) ) ) ; }
Creates new belongsTo Relation
@param string $model
@param string $parentColumn
@return static
Creates new belongsTo Relation