mysql - How to use not mapped entity fields in query builder -


i have question. have entity has not mapped field type in it. how can use field in query builder building queries? problem since not mapped fields not available in mysql tables, cannot use them in sql queries directly. there way use them in doctrine query builder? ;)

you've got several options :

 $sql = "   select ... "; // query here  $connection = $this->getdoctrine()->getmanager();  $qry = $connection->prepare($sql);  $qry->execute();  $results = $qry->fetchall();   // can iterate through $results... 

Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -