Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-BETA1
-
Component/s: None
-
Security Level: All
-
Labels:None
-
Environment:win XP SP3, PHP 5.3.1, MySQL
Description
I have attached my test project, except 'Doctrine' folder with Doctrine 2 project.
What I did:
1. I created schema manually (user create.sql file)
2. I generated model classes (by doctrine-cli.php script)
3. Made a little changes in annotations (I just added OneToMany between user and phone)
4. Run script test.php
Steps for reproducing:
1. create schema from create.sql file
2. fix connection string in dbconfig.php
3. run test.sql
Simple workaroung for me is to make all private fields as protected.
When I changed access for the user's field from private to protected, I faced with another error:
Fatal error: Call to a member function load() on a non-object in ...\models\proxies\UserProxy.php on line 17
Call Stack:
{main}0.0003 338752 1.
() \test.php:0
0.0928 3940528 2. Proxies\UserProxy->getPhones() \test.php:29
0.0928 3940528 3. Proxies\UserProxy->_load() \models\proxies\UserProxy.php:40