codeigniter - Doctrine find() function is working but it is returning DQL first then the object. I don't want to display DQL -
my code is
public function index() { $user = $this->doctrine->em->find('user\models\user', 1); echo '<br>'; echo $user->getname(); }
output is
select t0.id id1, t0.name name2 tbl_user t0 t0.id = ? array(1) { [0]=> int(1) } array(1) { [0]=> string(7) "integer" }
john
i have used codeigniter 2.2.2 , have integrated doctrine using these steps link
i solved problem. had comment echosqllogger() in doctrine.php file in libraries folder.
// set logger //$logger = new echosqllogger; //$config->setsqllogger($logger);
Comments
Post a Comment