TherawSqlcomponentworksinmuchsamewayasZend_Db_Select.Youmayusemethodoverloadinglike$q->from()->where()orjustuse$q->parseQuery().Therearesomedifferencesthough:1.InDoctrine_RawSqlcomponentyouneedtospecifyallthemappedtablecolumnsincurlybrackets{}thisisusedforsmartcolumnaliasing.2.WhenjoiningmultipletablesyouneedtospecifythecomponentpathswithaddComponent()methodThefollowingexamplerepresentsaverysimplecasewherenoaddComponent()callsareneeded.Hereweselectallentitiesfromtableentitywithallthecolumnsloadedintherecords.<codetype="php">$query=newDoctrine_RawSql($conn);$query->parseQuery("SELECT {entity.name} FROM entity");$entities=$query->execute();</code>