/** * @Entity * @Table(name="user_settings") */ class User_settings { /** * @Id * @Column(name = "`id`", type="integer", nullable=false, unique=true ) * @GeneratedValue(strategy="AUTO") */ private $id; /** * @ManyToOne(targetEntity="User", inversedBy="user_settings") * @JoinColumn(name="id_user", referencedColumnName="id") **/ private $id_user; /** * @Column(name = "`key`", type="string", length=160, nullable=false ) */ private $key; /** * @Column(name = "`value`", type="text", nullable=false ) */ private $value; ...
czemu jak pobiore obiekt
$new = $em->find('models\Entity\User_settings',44);
i przypisze sobie do $_SESSION['object'] Dostaje najpier litanie blędow żę są złe ścieżki po odświerzeniu strony wysypuje sie doctrine bo niby zle scieżki do porxy folderu sa ...
Warning: include() [function.include]: Failed opening 'app/errors/error_php.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\doctrinetest\system\core\Exceptions.php on line 167 A PHP Error was encountered Severity: Warning Message: require(app/models/proxies\Proxies\__CG__\models\Entity\Gallery.php) [function.require]: failed to open stream: No such file or directory Filename: Common/ClassLoader.php Line Number: 163
Ja mam coś nie tak czy po prostu nie można obiektów do których jest stworzona relacjie ladować do sesji ?