本文介绍了任何类似于Hibernate的PHP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个Java程序员,正在使用Hibernate和Struts一段时间的项目。

I am a Java programmer and was working on a project using Hibernate and Struts for some time.

现在对于我的新项目,我正在从事PHP和Mysql (学习PHP)。
有什么技术类似于Hibernate for PHP?如果是的话,任何人都可以给我链接,我可以理解和使用它吗?

Now For my new project, I am working on PHP and Mysql (learning PHP).Is there any technology which is similar to Hibernate for PHP? If yes, can anyone give me the link where I can understand and use it?

PHP中是否有POJO概念?

Is there a POJO concept in PHP?

推荐答案

在我看来,PHP的最佳ORM是。

In my opinion the best ORM for PHP is Doctrine.

您还可以查看是比较两者的最近的一个SO问题。通常的PHP框架,如Symfony,让我可以使用ORM,只要我记得。

PHP ORMs: Doctrine vs. Propel is a recent SO question comparing the two. Common PHP frameworks like Symfony let you use either ORM as far as I recall.

就POJO而言,据我所知,在PHP中使用stdClass 。我不是很熟悉Java,所以我不能肯定地说。这是一个关于这个的问题...

As far as POJOs, as far as I know you'd use stdClass for that in PHP. I'm not much with Java though, so I can't say for sure. Here's an SO Question about that... What is stdClass in PHP?

这篇关于任何类似于Hibernate的PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 17:31