Loading...
Loading...

Rowset Generator

generate database table representation

rowset-generator

Generate your sample Laminas MVC Rowset for given module and name. You can pass a list of properties to generate a list of availble getters and setter as well as toArray().

On-line Generator

Setup Instructions

  1. Ensure you have module called: %module% in your application.
  2. Create PHP files called AbstractModel.php and %name%.php in: [root]/module/%module%/src/Model/Rowset/ and paste the contents from above.

Throubleshooting

Make sure your application contains all the required plugins from "Required Laminas Components" and "Required Laminas Kit Components".
You can learn how to add missing dependencies in this video:

Parameters

Param name Type Default value Description
name text NULL Sets a rowset name
module text NULL Sets a module name
properties array NULL Sets rowset's properties

CLI Usage

"vendor/bin/laminas.bat" mvc:rowset --properties=<property1> --properties=<property2> --module=<moduleName> <name>

Example Usage

"vendor/bin/laminas.bat" mvc:rowset --properties=name --properties=description --properties=status --module=Application Users

Learn more with Laminas Book:

Laminas MVC: the most innovative framework in PHP - get a book on Amazon

Need help? Checkout our setup page, video tutorials or ask questions on our forum!

Help Tutorials Forum
TOP