Skip to content

Commit 60faa74

Browse files
committed
fix docs
1 parent e02bd84 commit 60faa74

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/basic_usage.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class UserModel extends Model
1414

1515
// ...
1616

17-
public function initialize()
17+
protected function initialize()
1818
{
1919
$this->initRelations();
2020
}
@@ -100,7 +100,7 @@ class UserModel extends Model
100100

101101
// ...
102102

103-
public function initialize()
103+
protected function initialize()
104104
{
105105
$this->initRelations();
106106
}

docs/relations.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class UserModel extends Model
2323

2424
// ...
2525

26-
public function initialize()
26+
protected function initialize()
2727
{
2828
$this->initRelations();
2929
}
@@ -56,7 +56,7 @@ class UserModel extends Model
5656

5757
// ...
5858

59-
public function initialize()
59+
protected function initialize()
6060
{
6161
$this->initRelations();
6262
}
@@ -89,7 +89,7 @@ class PostModel extends Model
8989

9090
// ...
9191

92-
public function initialize()
92+
protected function initialize()
9393
{
9494
$this->initRelations();
9595
}
@@ -181,7 +181,7 @@ class UserModel extends Model
181181

182182
// ...
183183

184-
public function initialize()
184+
protected function initialize()
185185
{
186186
$this->initRelations();
187187
}
@@ -231,7 +231,7 @@ class CountryModel extends Model
231231

232232
// ...
233233

234-
public function initialize()
234+
protected function initialize()
235235
{
236236
$this->initRelations();
237237
}
@@ -273,7 +273,7 @@ class StudentModel extends Model
273273

274274
// ...
275275

276-
public function initialize()
276+
protected function initialize()
277277
{
278278
$this->initRelations();
279279
}
@@ -291,7 +291,7 @@ class CourseModel extends Model
291291

292292
// ...
293293

294-
public function initialize()
294+
protected function initialize()
295295
{
296296
$this->initRelations();
297297
}

0 commit comments

Comments
 (0)