Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Mar 1st, 2013  |  syntax: None  |  size: 0.48 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. SQLSTATE[22P02]: Invalid text representation: 7
  2.     ERROR: invalid input syntax for type boolean: ""
  3.     500 Internal Server Error - PDOException
  4.        
  5. public function getFindAllNonOthersQueryBuilder()
  6. {
  7.     return $this
  8.         ->createQueryBuilder('t')
  9.         ->where('t.isOther = :isOther')
  10.         ->setParameter('isOther', false);
  11. }
  12.        
  13. /**
  14.  * @var boolean $isOther
  15.  *
  16.  * @ORMColumn(name="isOther", type="boolean")
  17.  */
  18. protected $isOther = false;
  19.        
  20. ...
  21. ->setParameter('isOther', 0);