We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc04121 + 2c90986 commit 47b0927Copy full SHA for 47b0927
src/Generators/TestsGenerator.php
@@ -236,11 +236,11 @@ protected function buildRelationsTree($models)
236
continue;
237
}
238
239
- if (in_array($this->model, $relations)) {
+ if (in_array($model, $relations)) {
240
$this->throwFailureException(
241
CircularRelationsFoundedException::class,
242
- "Circular relations founded.",
243
- "Please resolve you relations in models, factories and database."
+ 'Circular relations founded.',
+ 'Please resolve you relations in models, factories and database.'
244
);
245
246
0 commit comments