php - Error With doctrine/commons 1.2 -


i use symfony 2.3 , have problems doctrine/commons 1.2

this code

$criteria = criteria::create()     ->orderby(array("createdat" => criteria::desc,'id' => criteria::desc)) ; return $this->my_array_collection->matching($criteria); 

in doctrine/commons 1.1 it's works

in doctrine/commons 1.2 dosen't works... error is

syntax error or access violation: 1064 have error in sql syntax; check manual corresponds mysql server version right...

update

entity/profile.php     /**      *      * @orm\onetomany(targetentity="..\entity\notifybase", mappedby="dest")      */     protected $my_array_collection;   entity/notifybase   ... /**  * notifybase  *  * @orm\table(name="my_table")  * @orm\inheritancetype("joined")  * @orm\discriminatorcolumn(name="discr", type="string")  * @orm\discriminatormap({  *          "s"                        = "..\entity\notifys",  *          "d"                        = "..\entity\notifyd",  *          "r"                        = "..\entity\notifyr",  *          "p"                        = "..\entity\notifyp",  * })  * @orm\entity(repositoryclass="..\entity\notifybaserepository")  */ class notifybase {     /**      * @var integer      *      * @orm\column(name="id", type="integer")      * @orm\id      * @orm\generatedvalue(strategy="auto")      */     private $id;       /**      * @orm\manytoone(targetentity="..\entity\profile", inversedby="my_array_collection")      * @orm\joincolumn(name="dest_id", referencedcolumnname="id")      */     private $dest; 


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -