-1

We are using sf 1.4 and doctrine.

I installed Lucene according to the Jobeet tutorial. And I've been getting into some problems with it.

When I do the search without any values I get the complete table that Lucene is working with.

If I do a search of a value that was previously inserted into the table it returns nothing

But

When I do the search with values recently inserted I get this error, in each field of the table;

Warning: call_user_func_array() expects parameter 1 to be a valid
callback, class 'Doctrine_Collection' does not have a method
'getCedula' in /usr/share/php/symfony/escaper/
sfOutputEscaperObjectDecorator.class.php on line 64

In each field it shows the field function like getNombres,getDate and such.

Thanks for your help.

4

1 回答 1

0

对不起,我没有看到你的评论。

这就是我解决问题的方法

http://www.developpez.net/forums/d883623/php/bibliotheques-frameworks/symfony/jointure-relation-1-n/

   <td><a href="<?php echo url_for('admins/edit?usuarioid='.$personass->getUsuarioid()) ?>"><?php echo $personass->getUsuarioid() ?></a></td>
  <td><?php echo $personass->getCedula() ?></td>
  <td><?php echo $personass->getNombres() ?></td>
于 2010-06-30T13:21:09.913 回答