[Notice] Undefined offset: 0 (@line 280 in file /var/www/www.zasp.pl/htdocs/framework/Data/DataGateway/TDataGatewayCommand.php).
/var/www/www.zasp.pl/htdocs/framework/Data/DataGateway/TDataGatewayCommand.php (280)
0269: {
0270: throw new TDbException('dbtablegateway_no_primary_key_found',
0271: $this->getTableInfo()->getTableFullName());
0272: }
0273: $criteria=array();
0274: $bindings=array();
0275: $i = 0;
0276: foreach($primary as $key)
0277: {
0278: $column = $this->getTableInfo()->getColumn($key)->getColumnName();
0279: $criteria[] = $column.' = :'.$key;
0280: $bindings[$key] = isset($values[$key])?$values[$key]:$values[$i++];
0281: }
0282: return array(implode(' AND ', $criteria), $bindings);
0283: }
0284:
0285: /**
0286: * Find one matching records for arbituary SQL.
0287: * @param TSqlCriteria $criteria
0288: * @return TDbDataReader record reader.
0289: */
0290: public function findBySql($criteria)
0291: {
0292: $command = $this->getSqlCommand($criteria);
#0 /var/www/www.zasp.pl/htdocs/framework/Data/DataGateway/TDataGatewayCommand.php(280): PradoBase::phpErrorHandler(8, 'Undefined offse...', '/var/www/www.za...', 280, Array)
#1 /var/www/www.zasp.pl/htdocs/framework/Data/DataGateway/TDataGatewayCommand.php(163): TDataGatewayCommand->getPrimaryKeyCondition(Array)
#2 /var/www/www.zasp.pl/htdocs/framework/Data/ActiveRecord/TActiveRecordGateway.php(197): TDataGatewayCommand->findByPk(NULL)
#3 /var/www/www.zasp.pl/htdocs/framework/Data/ActiveRecord/TActiveRecord.php(617): TActiveRecordGateway->findRecordByPK(Object(PagesRecord), NULL)
#4 [internal function]: TActiveRecord->findByPk(NULL)
#5 /var/www/www.zasp.pl/htdocs/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php(78): call_user_func_array(Array, Array)
#6 /var/www/www.zasp.pl/htdocs/protected/Pages/Frontend/Pages.php(10): TActiveRecordRelation->__call('findByPk', Array)
#7 /var/www/www.zasp.pl/htdocs/protected/Pages/Frontend/Pages.php(10): TActiveRecordHasMany->findByPk(NULL)
#8 /var/www/www.zasp.pl/htdocs/framework/Web/UI/TControl.php(1293): Pages->onLoad(NULL)
#9 /var/www/www.zasp.pl/htdocs/framework/Web/UI/TPage.php(220): TControl->loadRecursive()
#10 /var/www/www.zasp.pl/htdocs/framework/Web/UI/TPage.php(201): TPage->processNormalRequest(Object(THtmlWriter))
#11 /var/www/www.zasp.pl/htdocs/framework/Web/Services/TPageService.php(522): TPage->run(Object(THtmlWriter))
#12 /var/www/www.zasp.pl/htdocs/framework/Web/Services/TPageService.php(468): TPageService->runPage(Object(Pages), Array)
#13 /var/www/www.zasp.pl/htdocs/framework/TApplication.php(1219): TPageService->run()
#14 /var/www/www.zasp.pl/htdocs/framework/TApplication.php(408): TApplication->runService()
#15 /var/www/www.zasp.pl/htdocs/index.php(15): TApplication->run()
#16 {main}