2011年10月12日
摘要: 在生成表单时使用entity类型,参见文档 http://symfony.com/doc/current/reference/forms/types/entity.html 阅读全文
posted @ 2011-10-12 08:53 邪安 阅读(106) 评论(0) 推荐(0)
  2011年10月4日
摘要: 数据表映射分为 OneToOne OneToMany ManyToOne ManyToMany 按官方文档 http://www.doctrine-project.org/docs/orm/2.0/en/reference/association-mapping.html 所述中使用 /** * @OneToOne(….) * …… */ 出错,信息为 [Doctrin... 阅读全文
posted @ 2011-10-04 19:31 邪安 阅读(739) 评论(0) 推荐(0)
  2011年9月30日
摘要: 目前学习测试用的 Symfony2 版本为 2.0.1,在测试过程中想合并用户提供器为 providers: main: ... 阅读全文
posted @ 2011-09-30 02:42 邪安 阅读(162) 评论(0) 推荐(0)
  2011年9月29日
摘要: 在学习测试中,登录页模板中使用了 twig 方法 is_granted 结果出现错误 An exception has been thrown during the rendering of a template ("The security context contains no authentication token. One possible reason may be that the... 阅读全文
posted @ 2011-09-29 00:02 邪安 阅读(388) 评论(0) 推荐(0)
  2011年9月28日
摘要: 清缓存 # sudo -u apache php app/console cache:clear 依据 Entity 定义生成数据表 # php app/console doctrine:schema:create [--force] 依据 Entity 定义更新数据表 # php app/console doctrine:schema:update [--force]... 阅读全文
posted @ 2011-09-28 00:00 邪安 阅读(195) 评论(0) 推荐(0)
  2011年9月27日
摘要: 整型 SmallInt Integer BigInt 浮点 Float Decimal 时间 Date DateTime DateTimeTz Time VarDateTime 字串 String Text 布尔 Boolean 数组 Array 物件 Object 阅读全文
posted @ 2011-09-27 23:40 邪安 阅读(188) 评论(0) 推荐(0)
  2011年9月25日
摘要: 使用 NetBeans 时设置字体时必须选择支持中文的字体,否则会显示为方块 阅读全文
posted @ 2011-09-25 01:56 邪安 阅读(159) 评论(0) 推荐(0)