Jacek Morek Programista hobbysta
Temat: Backend I18N
Witam potrzebuje w backendzie mieć edycję państwa w 3 językach.Działa mi dodawanie usuwanie i wyświetlanie listy natomiast edycja mi nie działa. Zrobione na podstawie jobeet.Zrobiłem takschema.yml
Panstwa:
actAs:
Timestampable: ~
I18n:
fields: [name]
actAs:
Sluggable: { fields: [name], uniqueBy: [lang, name] }
columns:
name: { type: string(255), notnull: true }
PanstwaTable.class.php
public function doSelectForSlug($parameters)
{
return $this->findOneBySlugAndCulture($parameters['slug'], $parameters['sf_culture']);
}
public function findOneBySlugAndCulture($slug, $culture = 'en')
{
$q = $this->createQuery('a')
->leftJoin('a.Translation t')
->andWhere('t.lang = ?', $culture)
->andWhere('t.slug = ?', $slug);
return $q->fetchOne();
}
public function findOneBySlug($slug)
{
return $this->findOneBySlugAndCulture($slug, 'en');
}
PanstwaForm.class.php
class PanstwaForm extends BasePanstwaForm
{
public function configure()
{
unset(
$this['jobeet_affiliates_list'],
$this['created_at'], $this['updated_at']
);
$this->embedI18n(array('pl', 'en','de'));
$this->widgetSchema->setLabel('pl', 'Polska');
$this->widgetSchema->setLabel('en', 'Angielska');
$this->widgetSchema->setLabel('de', 'Niemiecka');
}
}
Przebudowanie
symfony doctrine:build --all --and-load --no-confirmation
I cały czas dostaje ten sam błęd
stack trace
* at ()
in SF_ROOT_DIR/lib/vendor/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query.php line 729 ...
726.
727. // check column existence
728. if ( ! $def) {
729. throw new Doctrine_Query_Exception('Unknown column ' . $field);
730. }
731.
732. if (isset($def['owner'])) {
* at Doctrine_Query->parseClause('a.slug')
in SF_ROOT_DIR/lib/vendor/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Where.php line 93 ...
90. protected function _buildSql($leftExpr, $operator, $rightExpr)
91. {
92. $leftExprOriginal = $leftExpr;
93. $leftExpr = $this->query->parseClause($leftExpr);
94.
95. // BETWEEN operation
96. if ('BETWEEN' == strtoupper(substr($operator, 0, 7))) {
* at Doctrine_Query_Where->_buildSql('a.slug', '=', '?')
in SF_ROOT_DIR/lib/vendor/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Where.php line 81 ...
78. }
79. }
80.
81. $sql = $this->_buildSql($leftExpr, $operator, $rightExpr);
82.
83. return $sql;
84. } else {
* at Doctrine_Query_Where->load('a.slug = ?')
in SF_ROOT_DIR/lib/vendor/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Condition.php line 92 ...
89. if (strtoupper(substr($parts[0], 0, 4)) === 'NOT ') {
90. $r = 'NOT ('.$this->parse(substr($parts[0], 4)).')';
91. } else {
92. return $this->load($parts[0]);
93. }
94. }
95. }
* at Doctrine_Query_Condition->parse('a.slug = ?')
in SF_ROOT_DIR/lib/vendor/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Abstract.php line 2077 ...
2074. if (is_array($queryParts) && ! empty($queryParts)) {
2075. foreach ($queryParts as $queryPart) {
2076. $parser = $this->_getParser($queryPartName);
2077. $sql = $parser->parse($queryPart);
2078. if (isset($sql)) {
2079. if ($queryPartName == 'limit' || $queryPartName == 'offset') {
2080. $this->setSqlQueryPart($queryPartName, $sql);
* at Doctrine_Query_Abstract->_processDqlQueryPart('where', array('a.slug = ?', 'AND', 'a.lang = ?', 'AND', 'a.name = ?'))
in SF_ROOT_DIR/lib/vendor/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query.php line 1160 ...
1157.
1158. // FIX #1667: _sqlParts are cleaned inside _processDqlQueryPart.
1159. if ($queryPartName != 'forUpdate') {
1160. $this->_processDqlQueryPart($queryPartName, $queryParts);
1161. }
1162.
1163. // We need to define the root alias
* at Doctrine_Query->buildSqlQuery(1)
in SF_ROOT_DIR/lib/vendor/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query.php line 1126 ...
1123. // Return compiled SQL
1124. return $this->_sql;
1125. }
1126. return $this->buildSqlQuery($limitSubquery);
1127. }
1128.
1129. /**
* at Doctrine_Query->getSqlQuery(array())
in SF_ROOT_DIR/lib/vendor/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Abstract.php line 958 ...
955. }
956. }
957. } else {
958. $query = $this->getSqlQuery($params);
959. }
960. } else {
961. $query = $this->_view->getSelectSql();
* at Doctrine_Query_Abstract->_execute(array())
in SF_ROOT_DIR/lib/vendor/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Abstract.php line 1026 ...
1023. $result = $this->_constructQueryFromCache($cached);
1024. }
1025. } else {
1026. $stmt = $this->_execute($params);
1027.
1028. if (is_integer($stmt)) {
1029. $result = $stmt;
* at Doctrine_Query_Abstract->execute(array(), null)
in SF_ROOT_DIR/lib/vendor/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query.php line 281 ...
278. */
279. public function fetchOne($params = array(), $hydrationMode = null)
280. {
281. $collection = $this->execute($params, $hydrationMode);
282.
283. if (is_scalar($collection)) {
284. return $collection;
* at Doctrine_Query->fetchOne()
in SF_ROOT_DIR/lib/vendor/plugins/sfDoctrinePlugin/lib/validator/sfValidatorDoctrineUnique.class.php line 99 ...
96. $q->addWhere('a.' . $colName . ' = ?', $values[$column]);
97. }
98.
99. $object = $q->fetchOne();
100.
101. // if no object or if we're updating the object, it's ok
102. if (!$object || $this->isUpdate($object, $values))
* at sfValidatorDoctrineUnique->doClean(array('name' => 'aa', 'slug' => 'bbaa', 'id' => '6', 'lang' => 'pl'))
in SF_ROOT_DIR/lib/vendor/validator/sfValidatorSchema.class.php line 90 ...
87. */
88. public function clean($values)
89. {
90. return $this->doClean($values);
91. }
92.
93. /**
* at sfValidatorSchema->clean(array('name' => 'aa', 'slug' => 'bbaa', 'id' => '6', 'lang' => 'pl'))
in SF_ROOT_DIR/lib/vendor/validator/sfValidatorSchema.class.php line 246 ...
243. return $values;
244. }
245.
246. return $validator->clean($values);
247. }
248.
249. /**
* at sfValidatorSchema->postClean(array('name' => 'aa', 'slug' => 'bbaa', 'id' => '6', 'lang' => 'pl'))
in SF_ROOT_DIR/lib/vendor/validator/sfValidatorSchema.class.php line 186 ...
183. // post validator
184. try
185. {
186. $clean = $this->postClean($clean);
187. }
188. catch (sfValidatorErrorSchema $e)
189. {
* at sfValidatorSchema->doClean(array('name' => 'aa', 'slug' => 'bbaa', 'id' => '6', 'lang' => 'pl'))
in SF_ROOT_DIR/lib/vendor/validator/sfValidatorSchema.class.php line 90 ...
87. */
88. public function clean($values)
89. {
90. return $this->doClean($values);
91. }
92.
93. /**
* at sfValidatorSchema->clean(array('name' => 'aa', 'slug' => 'bbaa', 'id' => '6', 'lang' => 'pl'))
in SF_ROOT_DIR/lib/vendor/validator/sfValidatorSchema.class.php line 157 ...
154. // validate value
155. try
156. {
157. $clean[$name] = $this->fields[$name]->clean($value);
158. }
159. catch (sfValidatorError $e)
160. {
* at sfValidatorSchema->doClean(array('id' => '6', '_csrf_token' => 'c415933c9dbf3a44e8f4a631b417ed71', 'pl' => array('name' => 'aa', 'slug' => 'bbaa', 'id' => '6', 'lang' => 'pl'), 'en' => array('name' => 'cc', 'slug' => 'dd', 'id' => '6', 'lang' => 'en'), 'de' => array('name' => 'ee', 'slug' => 'fff', 'id' => '6', 'lang' => 'de')))
in SF_ROOT_DIR/lib/vendor/validator/sfValidatorSchema.class.php line 90 ...
87. */
88. public function clean($values)
89. {
90. return $this->doClean($values);
91. }
92.
93. /**
* at sfValidatorSchema->clean(array('id' => '6', '_csrf_token' => 'c415933c9dbf3a44e8f4a631b417ed71', 'pl' => array('name' => 'aa', 'slug' => 'bbaa', 'id' => '6', 'lang' => 'pl'), 'en' => array('name' => 'cc', 'slug' => 'dd', 'id' => '6', 'lang' => 'en'), 'de' => array('name' => 'ee', 'slug' => 'fff', 'id' => '6', 'lang' => 'de')))
in SF_ROOT_DIR/lib/vendor/form/sfForm.class.php line 247 ...
244. */
245. protected function doBind(array $values)
246. {
247. $this->values = $this->validatorSchema->clean($values);
248. }
249.
250. /**
* at sfForm->doBind(array('id' => '6', '_csrf_token' => 'c415933c9dbf3a44e8f4a631b417ed71', 'pl' => array('name' => 'aa', 'slug' => 'bbaa', 'id' => '6', 'lang' => 'pl'), 'en' => array('name' => 'cc', 'slug' => 'dd', 'id' => '6', 'lang' => 'en'), 'de' => array('name' => 'ee', 'slug' => 'fff', 'id' => '6', 'lang' => 'de')))
in SF_ROOT_DIR/lib/vendor/form/addon/sfFormSymfony.class.php line 75 ...
72.
73. try
74. {
75. parent::doBind($values);
76. }
77. catch (sfValidatorError $error)
78. {
* at sfFormSymfony->doBind(array('id' => '6', '_csrf_token' => 'c415933c9dbf3a44e8f4a631b417ed71', 'pl' => array('name' => 'aa', 'slug' => 'bbaa', 'id' => '6', 'lang' => 'pl'), 'en' => array('name' => 'cc', 'slug' => 'dd', 'id' => '6', 'lang' => 'en'), 'de' => array('name' => 'ee', 'slug' => 'fff', 'id' => '6', 'lang' => 'de')))
in SF_ROOT_DIR/lib/vendor/form/sfForm.class.php line 227 ...
224.
225. try
226. {
227. $this->doBind(self::deepArrayUnion($this->taintedValues, self::convertFileInformation($this->taintedFiles)));
228. $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
229.
230. // remove CSRF token
* at sfForm->bind(array('id' => '6', '_csrf_token' => 'c415933c9dbf3a44e8f4a631b417ed71', 'pl' => array('name' => 'aa', 'slug' => 'bbaa', 'id' => '6', 'lang' => 'pl'), 'en' => array('name' => 'cc', 'slug' => 'dd', 'id' => '6', 'lang' => 'en'), 'de' => array('name' => 'ee', 'slug' => 'fff', 'id' => '6', 'lang' => 'de')), array())
in SF_ROOT_DIR/cache/backend/dev/modules/autoPanstwa/actions/actions.class.php line 186 ...
183.
184. protected function processForm(sfWebRequest $request, sfForm $form)
185. {
186. $form->bind($request->getParameter($form->getName()), $request->getFiles($form->getName()));
187. if ($form->isValid())
188. {
189. $notice = $form->getObject()->isNew() ? 'The item was created successfully.' : 'The item was updated successfully.';
* at autoPanstwaActions->processForm(object('sfWebRequest'), object('PanstwaForm'))
in SF_ROOT_DIR/cache/backend/dev/modules/autoPanstwa/actions/actions.class.php line 102 ...
99. $this->panstwa = $this->getRoute()->getObject();
100. $this->form = $this->configuration->getForm($this->panstwa);
101.
102. $this->processForm($request, $this->form);
103.
104. $this->setTemplate('edit');
105. }
* at autoPanstwaActions->executeUpdate(object('sfWebRequest'))
in SF_ROOT_DIR/lib/vendor/action/sfActions.class.php line 60 ...
57. }
58.
59. // run action
60. return $this->$actionToRun($request);
61. }
62. }
63.
* at sfActions->execute(object('sfWebRequest'))
in SF_ROOT_DIR/lib/vendor/filter/sfExecutionFilter.class.php line 92 ...
89. {
90. // execute the action
91. $actionInstance->preExecute();
92. $viewName = $actionInstance->execute($this->context->getRequest());
93. $actionInstance->postExecute();
94.
95. return null === $viewName ? sfView::SUCCESS : $viewName;
* at sfExecutionFilter->executeAction(object('panstwaActions'))
in SF_ROOT_DIR/lib/vendor/filter/sfExecutionFilter.class.php line 78 ...
75. }
76. }
77.
78. return $this->executeAction($actionInstance);
79. }
80.
81. /**
* at sfExecutionFilter->handleAction(object('sfFilterChain'), object('panstwaActions'))
in SF_ROOT_DIR/lib/vendor/filter/sfExecutionFilter.class.php line 42 ...
39. {
40. $timer = sfTimerManager::getTimer(sprintf('Action "%s/%s"', $actionInstance->getModuleName(), $actionInstance->getActionName()));
41.
42. $viewName = $this->handleAction($filterChain, $actionInstance);
43.
44. $timer->addTime();
45. $timer = sfTimerManager::getTimer(sprintf('View "%s" for "%s/%s"', $viewName, $actionInstance->getModuleName(), $actionInstance->getActionName()));
* at sfExecutionFilter->execute(object('sfFilterChain'))
in SF_ROOT_DIR/lib/vendor/filter/sfFilterChain.class.php line 53 ...
50. }
51.
52. // execute the next filter
53. $this->chain[$this->index]->execute($this);
54. }
55. }
56.
* at sfFilterChain->execute()
in SF_ROOT_DIR/lib/vendor/filter/sfBasicSecurityFilter.class.php line 72 ...
69. }
70.
71. // the user has access, continue
72. $filterChain->execute();
73. }
74.
75. /**
* at sfBasicSecurityFilter->execute(object('sfFilterChain'))
in SF_ROOT_DIR/lib/vendor/filter/sfFilterChain.class.php line 53 ...
50. }
51.
52. // execute the next filter
53. $this->chain[$this->index]->execute($this);
54. }
55. }
56.
* at sfFilterChain->execute()
in SF_ROOT_DIR/lib/vendor/filter/sfRenderingFilter.class.php line 33 ...
30. public function execute($filterChain)
31. {
32. // execute next filter
33. $filterChain->execute();
34.
35. // get response object
36. $response = $this->context->getResponse();
* at sfRenderingFilter->execute(object('sfFilterChain'))
in SF_ROOT_DIR/lib/vendor/filter/sfFilterChain.class.php line 53 ...
50. }
51.
52. // execute the next filter
53. $this->chain[$this->index]->execute($this);
54. }
55. }
56.
* at sfFilterChain->execute()
in SF_ROOT_DIR/lib/vendor/controller/sfController.class.php line 233 ...
230. }
231.
232. // process the filter chain
233. $filterChain->execute();
234. }
235. else
236. {
* at sfController->forward('panstwa', 'update')
in SF_ROOT_DIR/lib/vendor/controller/sfFrontWebController.class.php line 48 ...
45. }
46.
47. // make the first request
48. $this->forward($moduleName, $actionName);
49. }
50. catch (sfException $e)
51. {
* at sfFrontWebController->dispatch()
in SF_ROOT_DIR/lib/vendor/util/sfContext.class.php line 170 ...
167. */
168. public function dispatch()
169. {
170. $this->getController()->dispatch();
171. }
172.
173. /**
* at sfContext->dispatch()
in SF_ROOT_DIR/web/backend_dev.php line 13 ...
10. require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
11.
12. $configuration = ProjectConfiguration::getApplicationConfiguration('backend', 'dev', true);
13. sfContext::createInstance($configuration)->dispatch();
14.
symfony settings ...
app_ckeditor_basePath: /js/ckeditor/
app_lyMediaManager_i18n_cultures: { }
app_lyMediaManager_use_i18n: false
mod_panstwa_enabled: true
mod_panstwa_view_class: sfPHP
sf_admin_module_web_dir: /sfDoctrinePlugin
sf_admin_web_dir: /sf/sf_admin
sf_app: backend
sf_app_base_cache_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/cache/backend
sf_app_cache_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/cache/backend/dev
sf_app_config_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/apps/backend/config
sf_app_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/apps/backend
sf_app_i18n_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/apps/backend/i18n
sf_app_lib_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/apps/backend/lib
sf_app_module_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/apps/backend/modules
sf_app_template_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/apps/backend/templates
sf_apps_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/apps
sf_cache: false
sf_cache_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/cache
sf_charset: utf-8
sf_check_lock: false
sf_compressed: false
sf_config_cache_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/cache/backend/dev/config
sf_config_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/config
sf_csrf_secret: 6756d3f3f26588f3c1588981b12592eca0731f38
sf_data_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/data
sf_debug: true
sf_default_culture: pl
sf_enabled_modules:
- default
- sfGuardAuth
- lyMediaAsset
- lyMediaFolder
sf_environment: dev
sf_error_404_action: error404
sf_error_404_module: default
sf_error_reporting: 32767
sf_escaping_method: ESC_SPECIALCHARS
sf_escaping_strategy: true
sf_etag: false
sf_file_link_format: null
sf_i18n: true
sf_i18n_cache_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/cache/backend/dev/i18n
sf_jquery_autocomplete: jquery.autocomplete.min.js
sf_jquery_core: jquery-1.3.2.min.js
sf_jquery_path: null
sf_jquery_plugin_paths: null
sf_jquery_ui: jquery-ui-1.7.3.custom.min.js
sf_jquery_web_dir: /sfJqueryReloadedPlugin
sf_lib_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/lib
sf_log_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/log
sf_logging_enabled: true
sf_login_action: signin
sf_login_module: sfGuardAuth
sf_module_cache_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/cache/backend/dev/modules
sf_module_disabled_action: disabled
sf_module_disabled_module: default
sf_no_script_name: false
sf_orm: doctrine
sf_plugins_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/plugins
sf_root_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk
sf_secure_action: secure
sf_secure_module: default
sf_standard_helpers:
- Partial
- Cache
sf_standard_helpers_0: Partial
sf_standard_helpers_1: Cache
sf_standard_helpers_2: I18N
sf_symfony_lib_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/lib/vendor
sf_template_cache_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/cache/backend/dev/template
sf_test_cache_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/cache/backend/dev/test
sf_test_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/test
sf_upload_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/web/uploads
sf_use_database: true
sf_web_debug: true
sf_web_debug_web_dir: /sf/sf_web_debug
sf_web_dir: /media/darek/Programowanie/workspace/www/quantuum/trunk/web
request ...
options:
path_info_key: PATH_INFO
path_info_array: SERVER
default_format: null
logging: '1'
relative_url_root: null
formats: { txt: text/plain, js: [application/javascript, application/x-javascript, text/javascript], css: text/css, json: [application/json, application/x-json], xml: [text/xml, application/xml, application/x-xml], rdf: application/rdf+xml, atom: application/atom+xml }
no_script_name: false
parameterHolder:
action: update
id: '6'
module: panstwa
panstwa: { id: '6', _csrf_token: c415933c9dbf3a44e8f4a631b417ed71, pl: { name: aa, slug: bbaa, id: '6', lang: pl }, en: { name: cc, slug: dd, id: '6', lang: en }, de: { name: ee, slug: fff, id: '6', lang: de } }
sf_format: html
attributeHolder:
sf_route: 'sfDoctrineRoute Object()'
response ...
status:
code: 500
text: 'Internal Server Error'
options:
http_protocol: HTTP/1.1
logging: '1'
charset: utf-8
send_http_headers: true
content_type: 'text/html; charset=utf-8'
cookies: { }
httpHeaders:
Content-Type: 'text/html; charset=utf-8'
javascripts: { }
stylesheets: { }
metas: { }
httpMetas: { }
user ...
options:
auto_shutdown: false
culture: null
default_culture: pl
use_flash: true
logging: '1'
timeout: 1800
attributeHolder:
admin_module: { panstwa.sort: [null, null], strony.sort: [null, null] }
sfGuardSecurityUser: { user_id: '2' }
symfony/user/sfUser/attributes: { }
symfony/user/sfUser/flash: { }
symfony/user/sfUser/flash/remove: { }
culture: pl
global vars ...
cookie:
symfony: 493vro4po8g3r0icokcqmm3lh3
env: { }
files: { }
get: { }
post:
panstwa: { id: '6', _csrf_token: c415933c9dbf3a44e8f4a631b417ed71, pl: { name: aa, slug: bbaa, id: '6', lang: pl }, en: { name: cc, slug: dd, id: '6', lang: en }, de: { name: ee, slug: fff, id: '6', lang: de } }
sf_method: put
server:
CONTENT_LENGTH: '431'
CONTENT_TYPE: application/x-www-form-urlencoded
DOCUMENT_ROOT: /var/www/quantuum/trunk/web
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_ACCEPT_ENCODING: 'gzip,deflate'
HTTP_ACCEPT_LANGUAGE: 'en-us,en;q=0.5'
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: symfony=493vro4po8g3r0icokcqmm3lh3
HTTP_HOST: quantuum
HTTP_KEEP_ALIVE: '115'
HTTP_REFERER: 'http://quantuum/backend_dev.php/panstwa/6/edit'
HTTP_USER_AGENT: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101211 Firefox/3.6.13'
PATH: '/sbin:/usr/sbin:/bin:/usr/bin'
PATH_INFO: /panstwa/6
PATH_TRANSLATED: 'redirect:/index.php/6'
PHP_SELF: /backend_dev.php/panstwa/6
QUERY_STRING: ''
REMOTE_ADDR: 127.0.0.1
REMOTE_PORT: '37405'
REQUEST_METHOD: POST
REQUEST_TIME: 1293664498
REQUEST_URI: /backend_dev.php/panstwa/6
SCRIPT_FILENAME: /var/www/quantuum/trunk/web/backend_dev.php
SCRIPT_NAME: /backend_dev.php
SERVER_ADDR: 127.0.0.1
SERVER_ADMIN: you@example.com
SERVER_NAME: quantuum
SERVER_PORT: '80'
SERVER_PROTOCOL: HTTP/1.1
SERVER_SIGNATURE: "<address>Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/1.0.0c DAV/2 PHP/5.3.4 with Suhosin-Patch Server at quantuum Port 80</address>\n"
SERVER_SOFTWARE: 'Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/1.0.0c DAV/2 PHP/5.3.4 with Suhosin-Patch'
session:
symfony/user/sfUser/attributes: { symfony/user/sfUser/attributes: { }, sfGuardSecurityUser: { user_id: '2' }, admin_module: { strony.sort: [null, null], panstwa.sort: [null, null] }, symfony/user/sfUser/flash: { }, symfony/user/sfUser/flash/remove: { } }
symfony/user/sfUser/authenticated: true
symfony/user/sfUser/credentials: { }
symfony/user/sfUser/culture: pl
symfony/user/sfUser/lastRequest: 1293664492
symfony v.1.4.6 - php 5.3.4
for help resolving this issue, please visit http://www.symfony-project.org/.
W logu otrzymuje takie info
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfRoute "sf_guard_signin" (/guard/login)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfRoute "sf_guard_signout" (/guard/logout)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_asset_filter" (/ly_media_asset/filter.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_asset_batch" (/ly_media_asset/batch.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_asset" (/ly_media_asset.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_asset_new" (/ly_media_asset/new.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_asset_create" (/ly_media_asset.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_asset_edit" (/ly_media_asset/:id/edit.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_asset_update" (/ly_media_asset/:id.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_asset_delete" (/ly_media_asset/:id.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_asset_show" (/ly_media_asset/:id.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_asset_download" (/ly_media_asset/:id/download.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_asset_object" (/ly_media_asset/:id/:action.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_asset_collection" (/ly_media_asset/:action/action.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_folder_filter" (/ly_media_folder/filter.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_folder_batch" (/ly_media_folder/batch.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_folder" (/ly_media_folder.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_folder_new" (/ly_media_folder/new.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_folder_create" (/ly_media_folder.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_folder_edit" (/ly_media_folder/:id/edit.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_folder_update" (/ly_media_folder/:id.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_folder_delete" (/ly_media_folder/:id.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_folder_show" (/ly_media_folder/:id.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_folder_object" (/ly_media_folder/:id/:action.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "ly_media_folder_collection" (/ly_media_folder/:action/action.:sf_format)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfRoute "ly_media_asset_icons" (/ly_media_asset/icons/:folder_id)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Connect sfRoute "ly_media_asset_popup" (/ly_media_asset/popup)
Dec 30 00:26:22 symfony [info] {sfPatternRouting} Match route "panstwa_update" (/panstwa/:id.:sf_format) for /panstwa/6 with parameters array ( 'module' => 'panstwa', 'action' => 'update', 'sf_format' => 'html', 'id' => '6',)
Dec 30 00:26:22 symfony [info] {sfFilterChain} Executing filter "sfRenderingFilter"
Dec 30 00:26:22 symfony [info] {sfFilterChain} Executing filter "sfBasicSecurityFilter"
Dec 30 00:26:22 symfony [info] {sfFilterChain} Executing filter "sfExecutionFilter"
Dec 30 00:26:22 symfony [info] {panstwaActions} Call "panstwaActions->executeUpdate()"
Dec 30 00:26:24 symfony [info] {Doctrine_Connection_Mysql} exec : SET NAMES 'UTF8' - ()
Dec 30 00:26:24 symfony [info] {Doctrine_Connection_Statement} execute : SELECT p.id AS p__id, p.created_at AS p__created_at, p.updated_at AS p__updated_at FROM panstwa p WHERE (p.id = ?) - (6)
Dec 30 00:26:24 symfony [info] {Doctrine_Connection_Statement} execute : SELECT p.id AS p__id, p.name AS p__name, p.lang AS p__lang, p.slug AS p__slug FROM panstwa_translation p WHERE (p.id IN (?)) - (6)
Dec 30 00:26:24 symfony [err] {Doctrine_Query_Exception} Unknown column slug
Dec 30 00:26:24 symfony [info] {sfWebResponse} Send status "HTTP/1.1 500 Internal Server Error"
Dec 30 00:26:24 symfony [info] {sfWebResponse} Send header "Content-Type: text/html; charset=utf-8"
Dec 30 00:26:24 symfony [info] {sfWebDebugLogger} Configuration 1773.93 ms (12)
Dec 30 00:26:24 symfony [info] {sfWebDebugLogger} Factories 69.21 ms (1)
Dec 30 00:26:24 symfony [info] {sfWebDebugLogger} Action "panstwa/update" 1864.20 ms (1)
Dec 30 00:26:24 symfony [info] {sfWebDebugLogger} Database (Doctrine) 0.03 ms (3)
Zapytania powyżej wykonane na bazie danych wykonują się prawidłowo dlatego kompletnie nie czaje dlaczego się plumka o że nie zna SLUG.
Zrobiłem w jobeet na podstawie tutoriala tak jak w przyładzie dla category i działa a w moim projekcie dla państw zapisywanie przy edycji nie dziła. Prosze o pomoc.Jacek Morek edytował(a) ten post dnia 30.12.10 o godzinie 00:28