会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
邪安领域
empty
博客园
首页
新随笔
联系
订阅
管理
2011年10月12日
Entities passed to the choice field must have a "__toString()" method defined (or you can also override the "property" option)
摘要: 在生成表单时使用entity类型,参见文档 http://symfony.com/doc/current/reference/forms/types/entity.html
阅读全文
posted @ 2011-10-12 08:53 邪安
阅读(106)
评论(0)
推荐(0)
2011年10月4日
Symfony2 The annotation …… was never imported
摘要: 数据表映射分为 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 合并用户提供器问题
摘要: 目前学习测试用的 Symfony2 版本为 2.0.1,在测试过程中想合并用户提供器为 providers: main: ...
阅读全文
posted @ 2011-09-30 02:42 邪安
阅读(162)
评论(0)
推荐(0)
2011年9月29日
Symfony2 The security context contains no authentication token
摘要: 在学习测试中,登录页模板中使用了 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日
Symfony2 常用命令行
摘要: 清缓存 # 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日
Symfony2 ORM Column 类型
摘要: 整型 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 中文显示方块
摘要: 使用 NetBeans 时设置字体时必须选择支持中文的字体,否则会显示为方块
阅读全文
posted @ 2011-09-25 01:56 邪安
阅读(159)
评论(0)
推荐(0)