用户
 找回密码
 入住 CI 中国社区
搜索
楼主: baiyuxiong
收起左侧

[中级] 从头学CodeIgniter和Doctrine系列 第一天【翻译】

    [复制链接]
 楼主| 发表于 2010-1-27 15:54:05 | 显示全部楼层
把第18行附近的代码贴出来看看。
发表于 2010-1-29 08:23:23 | 显示全部楼层
好东西啊~~定~
发表于 2010-1-29 12:37:55 | 显示全部楼层
帮楼上定,俺也是刚来的,跟着做了次 ,完全OK
发表于 2010-1-30 13:10:01 | 显示全部楼层
下载Doctrine 在哪里下载呢?
发表于 2010-2-1 09:09:37 | 显示全部楼层
回复 14# 小新哥哥


   http://www.doctrine-project.org/

在这里下载
发表于 2010-2-1 12:41:22 | 显示全部楼层
回复 15# xiaoniao


    谢谢!
发表于 2010-2-4 14:45:10 | 显示全部楼层
回复 10# S081167
有aotuload doctrine么?
发表于 2010-2-22 22:51:48 | 显示全部楼层
[Mon Feb 22 22:48:06 2010] [error] [client 127.0.0.1] PHP Fatal error:  Uncaught exception 'Doctrine_Connection_Exception' with message 'Couldn't locate driver named mysql' in C:\\usr\\www\\ci_doctrine_day1\\system\\application\\plugins\\doctrine\\lib\\Doctrine\\Connection.php:486\nStack trace:\n#0 C:\\usr\\www\\ci_doctrine_day1\\system\\application\\plugins\\doctrine\\lib\\Doctrine\\Connection\\Mysql.php(101): Doctrine_Connection->connect()\n#1 C:\\usr\\www\\ci_doctrine_day1\\system\\application\\plugins\\doctrine\\lib\\Doctrine\\Connection\\UnitOfWork.php(54): Doctrine_Connection_Mysql->connect()\n#2 C:\\usr\\www\\ci_doctrine_day1\\system\\application\\plugins\\doctrine\\lib\\Doctrine\\Record.php(1691): Doctrine_Connection_UnitOfWork->saveGraph(Object(User))\n#3 C:\\usr\\www\\ci_doctrine_day1\\system\\application\\controllers\\hello.php(13): Doctrine_Record->save()\n#4 C:\\usr\\www\\ci_doctrine_day1\\system\\codeigniter\\CodeIgniter.php(236): Hello->user_test()\n#5 C:\\usr\\www\\ci_doctrine_day1\\index.php(115): require_once('C:\\usr\\www\\ci_d...')\n#6 {main}\n  thrown in C:\\usr\\www\\ci_doctrine_day1\\system\\application\\plugins\\doctrine\\lib\\Doctrine\\Connection.php on line 486


按步骤做了后,出现这个错误,该怎么解决呢?谢谢
发表于 2010-3-3 14:45:10 | 显示全部楼层
我和楼上出现一样的问题,请楼主帮忙看看
发表于 2010-3-3 14:56:34 | 显示全部楼层
[Wed Mar 03 14:53:50 2010] [error] [client 127.0.0.1] PHP Fatal error:  Uncaught exception 'Doctrine_Transaction_Exception' with message 'Rollback failed. There is no active transaction.' in E:\\dev\\www\\ci_doctrine\\system\\application\\plugins\\doctrine\\lib\\Doctrine\\Transaction.php:319
[Wed Mar 03 14:53:50 2010] [error] [client 127.0.0.1] Stack trace:
[Wed Mar 03 14:53:50 2010] [error] [client 127.0.0.1] #0 E:\\dev\\www\\ci_doctrine\\system\\application\\plugins\\doctrine\\lib\\Doctrine\\Connection.php(1426): Doctrine_Transaction->rollback(NULL)
[Wed Mar 03 14:53:50 2010] [error] [client 127.0.0.1] #1 E:\\dev\\www\\ci_doctrine\\system\\application\\plugins\\doctrine\\lib\\Doctrine\\Connection\\UnitOfWork.php(136): Doctrine_Connection->rollback()
[Wed Mar 03 14:53:50 2010] [error] [client 127.0.0.1] #2 E:\\dev\\www\\ci_doctrine\\system\\application\\plugins\\doctrine\\lib\\Doctrine\\Record.php(1599): Doctrine_Connection_UnitOfWork->saveGraph(Object(User))
[Wed Mar 03 14:53:50 2010] [error] [client 127.0.0.1] #3 E:\\dev\\www\\ci_doctrine\\system\\application\\controllers\\hello.php(12): Doctrine_Record->save()
[Wed Mar 03 14:53:50 2010] [error] [client 127.0.0.1] #4 [internal function]: Hello->user_test()
[Wed Mar 03 14:53:50 2010] [error] [client 127.0.0.1] #5 E:\\dev\\www\\ci_doctrine\\system\\codeigniter\\CodeIgniter.php(236): call_user_func_array(Array, Array)
[Wed Mar 03 14:53:50 2010] [error] [client 127.0.0.1] #6 E:\\dev\\www\\ci_doctrine\\index.php(115): require_once('E:\\dev\\www\\ci_d...')
[Wed Mar 03 14:53:50 2010] [error] [client 127.0.0.1] #7 {main}
[Wed Mar 03 14:53:50 2010] [error] [client 127.0.0.1]   thrown in E:\\dev\\www\\ci_doctrine\\system\\application\\plugins\\doctrine\\lib\\Doctrine\\Transaction.php on line 319

还有这样子的错误 请解

本版积分规则