File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,41 @@ class RecentOrdersView extends View
180180}
181181```
182182
183+ #### 📑 View
184+
185+ The ` View ` class is used to create views in the database.
186+ In addition to the options above, you can use the following options to further customize the view:
187+
188+ ``` php
189+ <?php
190+
191+ class RecentOrdersView extends View
192+ {
193+ // to create a recursive view
194+ protected bool $recursive = true;
195+ // adds a `WITH CHECK OPTION` clause to the view
196+ protected string|true|null $checkOption = 'cascaded';
197+ // can provide explicit column listing
198+ protected ?array $columns = ['id', 'customer_id', 'status', 'created_at'];
199+ }
200+ ```
201+
202+ <!-- #### 💿 Materialized View -->
203+ <!-- -->
204+ <!-- #### 🛠 Function -->
205+ <!-- -->
206+ <!-- #### 📤 Procedure -->
207+ <!-- -->
208+ <!-- #### ⚡ Trigger -->
209+ <!-- -->
210+ <!-- #### 🔢 Sequence -->
211+ <!-- -->
212+ <!-- #### 🧳 Domain -->
213+ <!-- -->
214+ <!-- #### 🧬 Type -->
215+ <!-- -->
216+ <!-- #### 🛡 Policy -->
217+
183218### 🧠 Manager
184219
185220The ` SqlEntityManager ` singleton is responsible for creating and dropping SQL entities at runtime.
You can’t perform that action at this time.
0 commit comments