English 中文(简体)
Zend+Doctrine yml schema
原标题:Zend+Doctrine yml schema question

根据这些指示,我得以与Doctrine 1.2合作,获得我的Zend模块项目。

http://github.com/beberlei/zf-doctrine,我有一个问题:

Can I somehow get rid of writing entity names with prefixes Default_Model_ and Forum_Model_? For example write this prefix only once somewhere in yml and all entities in yml file will have it, or better by placing schema.yml into module folder and the entities will automatically gain the proper prefix by it s module.

我想利用一些工具来设计这些实体,但我确实不想有假名Default_Model_User等。

Thanks in advance Martin Srom

最佳回答

如果你不希望使用泽斯德框架在杜古拉模式中写复杂的名字,你可以尝试使用ORM设计器。 除此以外,你设计了整个模型而不是文字编辑,使你能够确定分离单元的序号。 在你以短名和出口时,人力资源管理厅设计师与你一道,按照Zend FW的要求,编造姓名。

More about this feature is in ORM Designer blog: http://blog.orm-designer.com/2010/09/prefixes-for-doctrine-orm-entities-useful-for-doctrine-and-zend-framework/

ORM 指定网站:www.orm- Designer.com

问题回答

作为这一一体化的制定者: 我知道,你不能绕过这种限制之一,就是这种限制。 随着执行工作的进一步推移,将变得更加复杂,并出现错误。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签