An open API service indexing awesome lists of open source software.

https://github.com/mirsch/repo-pattern-generator


https://github.com/mirsch/repo-pattern-generator

database entity orm php7 phpstorm repository scripted-extension

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# Repo Pattern Generator

This is a PHPStorm/IntelliJ IDEA **Scripted Extension** that generates an Entity and Repository class from one or more database tables.

## Installation

On MacOS, copy the file `src/Repo Pattern Generator.groovy` into

$HOME/Library/Preferences/PhpStorm2018.1/extensions/com.intellij.database/schema

(Adjust the path according to your product and version.)

## Running

In the **Database** view, right click a table and select **Scripted Extensions** / **Repo Pattern Generator**.

![image](screenshot-1.png)

## Limitations

The generator assumes that there is a primary key on one field and this field is an auto increment integer.