dsgni26260 2016-02-05 01:49
浏览 66
已采纳

Propel(PHP ORM),基本用法为所有(非空)表和列返回NULL

I am using Propel ORM and I set everything that must be from Propel Documentation. I have tables and when i echo the result from some Table row the result is just NULL, and NULL for everything. Of course these tables/rows are not empty. It works fine with standart query. The problem is that there are not errors, too and thats why i can't find the solution and I can'tt explain the problem, like I want. I am new with Propel and want to use it. Please, if there is someone with expirience to help me. I am using MySQL. The code is just standart:

 // setup the autoloading
 require_once '../vendor/autoload.php';

 // setup Propel
 require_once '../vendor/bin/generated-conf/config.php';

 $author = new Authors();

 echo '<pre>';
 var_dump($author);
 echo '</pre>';

The table is not empty.

  • 写回答

2条回答 默认 最新

  • dsfsd43523 2016-02-06 00:43
    关注

    http://propelorm.org/Propel/documentation/08-logging.html

    You will more info about errors from logs.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?