getQualifiedOtherKeyName() публичный метод

Get the fully qualified associated key of the relationship.
public getQualifiedOtherKeyName ( ) : string
Результат string
Пример #1
2
 protected function joinBelongsToRelation(Relations\BelongsTo $relation, $type)
 {
     $table = $relation->getRelated()->getTable();
     $foreignKey = $relation->getQualifiedForeignKey();
     $localKey = $relation->getQualifiedOtherKeyName();
     $this->query->join($table, $foreignKey, '=', $localKey, $type);
 }
Пример #2
2
 /**
  * Add select with alias to query from "belongs to" relation
  *
  * @param Builder   $query
  * @param BelongsTo $relatedModel
  */
 private function addBelongsToSelect(Builder $query, BelongsTo $relatedModel)
 {
     $query->getQuery()->join($relatedModel->getRelated()->getTable(), $relatedModel->getQualifiedForeignKey(), '=', $relatedModel->getQualifiedOtherKeyName());
 }
Пример #3
0
 private function generateNullConditionFromBelongsTo(BelongsTo $relation)
 {
     $this->query = $this->query->whereNull($relation->getQualifiedOtherKeyName());
 }