actions.class.php
public function executeZzz() {
$t = Doctrine::getTable('News');
$b = $t->find(2);
$a = $t->findByTitle('Tin bài số 2 từ Thông tấn xã')->getFirst();
$this->a = $a;
$this->b = $b;
}
zzzSuccess.php
<?php
if (is_object($a)) {
echo $a->title;
echo $a['title'];
echo $a->getTitle();
}
Title:
Symfony Doctrine find to get Object
Description:
actions.class.php public function executeZzz() { $t = Doctrine::getTable('News'); $b = $t->find(2); $a = $t->findByTitle(...
...
Rating:
4