Example #1
0
 /**
  * @param $id
  * @return null|object|stdClass
  */
 private function findEntity($id)
 {
     $query = $this->table->getFindSQL($id);
     $result = $this->runQuery($query);
     if (!$result || mysqli_num_rows($result) == 0) {
         return null;
     }
     $obj = $result->fetch_object();
     return $obj;
 }
 public function testGetFindSQLOnNotAnnotatedEntity()
 {
     $sql = $this->notAnnotatedTableData->getFindSQL(1);
     $this->assertEqualsFixture($sql, __FUNCTION__);
 }