Skip to content

Commit 17df0e3

Browse files
committed
Remove comment
1 parent b89558b commit 17df0e3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Generators/ModelGenerator.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ protected function buildRelationships(Model $model)
190190

191191
foreach ($model->relationships() as $type => $references) {
192192
foreach ($references as $reference) {
193-
// if reference starts with \ , we assume developer is using a fully namespaced model
194193
$is_model_fqn = Str::startsWith($reference, '\\');
195194

196195
$custom_template = $template;
@@ -218,8 +217,6 @@ protected function buildRelationships(Model $model)
218217
}
219218
}
220219

221-
// if full model namespace is proviced we will not try to infer it,
222-
// we use the namespace as developer gives us
223220
if ($is_model_fqn) {
224221
$fqcn = $class ?? $column_name;
225222
$class_name = Str::afterLast($fqcn, '\\');

0 commit comments

Comments
 (0)