Doctrine 2.0 select query problem?

2019-05-26 21:45发布

问题:

i friends i am new to DOctrine 2.0 .i already configure but it is not working ...

I have one table "abctable" in data base "xyzdb".

        id  name   age

        --------------
        1   Abc     23  
        2   Ijk     21
        3   Mno     32  
        -------------- 

Table name:abctable
db name:xyzdb
host    :127.0.0.1
dbusername:king
dbpassword:123456

In this above configuration .How to configure using doctrine 2.0 Version.

And how to use query --"select * from abctable" in Doctrine 2.0  

version.Select ,insert,delect,update give one example..please help...

回答1:

I suggest you read the documentation: http://www.doctrine-project.org/docs/orm/2.0/en/, specifically the section on configuration http://www.doctrine-project.org/docs/orm/2.0/en/reference/configuration.html to get you started.



回答2:

Doctrine2 basic; Proxies, Repositories