
Doctrine
小兔and小乖
把代码看作自己的孩子不容许他犯一丝错误
展开
-
Doctrine Annotations
Annotations Reference¶ In this chapter a reference of every Doctrine 2 Annotation is given with short explanations on their context and usage. 21.1. Index @Column @ColumnResult @ChangeT转载 2013-07-20 22:01:22 · 1922 阅读 · 0 评论 -
Doctrine 缓存
Doctrine provides cache drivers in the Common package for some of the most popular caching implementations such as APC, Memcache and Xcache. We also provide an ArrayCache driver which stores the d翻译 2014-01-01 13:31:21 · 5295 阅读 · 1 评论 -
Symfony2 命令集锦
1.创建一个bundle $ php app/console generate:bundle --namespace=Acme/StoreBundle 2.创建数据库 $ php app/console doctrine:database:create 3.删除数据库 $ php app/console doctrine:database:drop --force原创 2013-08-26 22:52:42 · 1141 阅读 · 0 评论 -
Doctrine中的annotation
声明在Class上的 @Entity 声明某个类为实体类,对应着数据库中的一张表 @Table(name="users") 声明这个实体类生成的数据表名字 声明在属性上的 @Column(type="integer") 数据库表的列的类型为整型 @Column(length=140) 数据库表的列的长度为140个字符 @Column(type="datetime", name原创 2013-12-27 22:53:42 · 2297 阅读 · 0 评论