简单的CRUD生成 [英] Simple CRUD Generation

查看:143
本文介绍了简单的CRUD生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我所拥有的:


  • 为Doctrine 2.0(PHP)建模的实体关系模式;

  • 在MySQL服务器上生成的数据库。

这就是我想要的:

数据库的一个非常基本的CRUD Web界面,允许我(你猜到!)创建,读取,更新和删除记录,额外的信用来实现对实体的CRUD操作,关系,而不是记录。

A very basic CRUD web-interface to the database, that allows me to (you guessed it!) create, read, update and delete records, with extra credit for implementing CRUD operations on entities and relations instead of records.

现在,我自己编写Web应用程序非常糟糕(阅读:我很懒)。是否有任何选项可以从MySQL数据库或一组Doctrine实体生成CRUD Web应用程序?

Now, I'm terrible at writing web applications myself (read: I'm lazy). Are there any options to generate a CRUD web application from a MySQL database, or from a set of Doctrine entities?


  1. 我愿意停止使用PHP(从而重写JPA,Ruby ActiveRecord等的实体),而不是MySQL。

  2. 我看到很多类似的问题:但是,大多数这些问题都有答案让CRUD在PHP代码中运行,或者推荐使用Doctrine。

  3. 一个答案如没有这样的工具,停止懒惰也将被赞赏。


推荐答案

Symfony做到这一点(至少是1。 x系列我习惯了)。我应该认为版本2.0也是根据Doctrine或Propel(两者都可以与MySQL一起使用)。

Symfony does this (at least the 1.x series I am used to). I should think version 2.0 also does, under either Doctrine or Propel (and both of those will work with MySQL).

这篇关于简单的CRUD生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆