Skip to content

Commit 64d6bf7

Browse files
committed
disabled by default
1 parent 4c921b0 commit 64d6bf7

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

config/ide-helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
*/
9595

9696
'write_model_relation_count_properties' => true,
97-
'write_model_relation_exists_properties' => true,
97+
'write_model_relation_exists_properties' => false,
9898

9999
/*
100100
|--------------------------------------------------------------------------

src/Console/ModelsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function handle()
175175
$this->write_model_relation_count_properties =
176176
$this->laravel['config']->get('ide-helper.write_model_relation_count_properties', true);
177177
$this->write_model_relation_exists_properties =
178-
$this->laravel['config']->get('ide-helper.write_model_relation_exists_properties', true);
178+
$this->laravel['config']->get('ide-helper.write_model_relation_exists_properties', false);
179179

180180
$this->write = $this->write_mixin ? true : $this->write;
181181
//If filename is default and Write is not specified, ask what to do

tests/Console/ModelsCommand/AbstractModelsCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ protected function getEnvironmentSetUp($app)
5151

5252
// Don't override integer -> int for tests
5353
$config->set('ide-helper.type_overrides', []);
54+
55+
$config->set('ide-helper.write_model_relation_exists_properties', true);
5456
}
5557

5658
protected function assertMatchesMockedSnapshot()

0 commit comments

Comments
 (0)