File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ Book::findFirst(["book" => "Book_56"])->remove();
131131```
132132
133133# update v1.3:
134- Now it's possible to migrate classes to tables in database. All you need is describe classes and call migrate method:
134+ Now it's possible to create tables in database from classes . All you need is describe classes and call migrate method:
135135``` php
136136// migrate.php
137137$db = new HomeLibrary();
@@ -142,4 +142,4 @@ $author1->migrate();
142142$library = new Library();
143143$library->migrate();
144144```
145- Be cearful , when you migrate class to table which is exist. Its structure will be replaced to new and all data will be cleaned .
145+ Be careful , when you call migrate for tables which are exists in database, their structure will be overwritten and all data will deleted .
You can’t perform that action at this time.
0 commit comments