@@ -17,15 +17,6 @@ public function getForeignKeyName()
1717 return $ this ->foreignKey ;
1818 }
1919
20- /**
21- * Get the plain foreign key.
22- * @return string
23- */
24- public function getPlainForeignKey ()
25- {
26- return $ this ->getForeignKeyName ();
27- }
28-
2920 /**
3021 * Get the key for comparing against the parent key in "has" query.
3122 * @return string
@@ -45,35 +36,6 @@ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery,
4536 return $ query ->select ($ foreignKey )->where ($ foreignKey , 'exists ' , true );
4637 }
4738
48- /**
49- * Add the constraints for a relationship count query.
50- * @param Builder $query
51- * @param Builder $parent
52- * @return Builder
53- */
54- public function getRelationCountQuery (Builder $ query , Builder $ parent )
55- {
56- $ foreignKey = $ this ->getHasCompareKey ();
57-
58- return $ query ->select ($ foreignKey )->where ($ foreignKey , 'exists ' , true );
59- }
60-
61- /**
62- * Add the constraints for a relationship query.
63- * @param Builder $query
64- * @param Builder $parent
65- * @param array|mixed $columns
66- * @return Builder
67- */
68- public function getRelationQuery (Builder $ query , Builder $ parent , $ columns = ['* ' ])
69- {
70- $ query ->select ($ columns );
71-
72- $ key = $ this ->wrap ($ this ->getQualifiedParentKeyName ());
73-
74- return $ query ->where ($ this ->getHasCompareKey (), 'exists ' , true );
75- }
76-
7739 /**
7840 * Get the name of the "where in" method for eager loading.
7941 * @param \Illuminate\Database\Eloquent\Model $model
0 commit comments