You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I'm getting this error when creating a new record into a Solr behaviour table.
I've debugged the application up to it gets to $invoker->addToIndex();
This function makes a call to the __call($method, $arguments) method of sfDoctrineRecord.class.php where tries to evaluate the $method parameter whether is a "get" or a "set".
But the problem is that the $method parameter is a "addToIndex" so it throws an execption and the record is not inserted.
do not use the getFieldsArray(), doctrine wants to find a field called "fiels_array", rename it with retreiveFieldsArray, this should work. Never use a get on a record because the _call function use it to retreive data for each column.
the plugin uses the getFieldsArray() internally, so one would need to refactor the plugin. the strange thing is, that it works on all of our models, except one.
Hello. I'm getting this error when creating a new record into a Solr behaviour table.
I've debugged the application up to it gets to $invoker->addToIndex();
This function makes a call to the __call($method, $arguments) method of sfDoctrineRecord.class.php where tries to evaluate the $method parameter whether is a "get" or a "set".
But the problem is that the $method parameter is a "addToIndex" so it throws an execption and the record is not inserted.
Here is my schema config and the error trace:
ForumThread:
actAs:
Solr:
fields: [ subject, content ]
fieldmap: { subject: subject_t, content: content_t }
Sluggable:
fields: [subject]
Timestampable: ~
options:
collate: utf8_unicode_ci
charset: utf8
columns:
forum_id: { type: integer(11), notnull: true }
user_id: { type: integer(4), notnull: true }
subject: { type: string(400), notnull: true }
content: { type: clob, notnull: true }
posts: { type: integer(6), default: 0 }
views: { type: integer(6), default: 0 }
new_post: { type: boolean, notnull: true, default: 0 }
relations:
User: { class: sfGuardUser, local: user_id, foreign: id, type: one }
Forum: { class: Forum, local: forum_id, foreign: id, type: one }
at ()
in SF_ROOT_DIR/plugins/tjSolrDoctrineBehaviorPlugin/lib/vendor/solrphpclient/Service.php line 385 ...
The text was updated successfully, but these errors were encountered: