TYPO3 TCA foreign where field = uid -


i have typo3 7.6.18

'friends' => array(     'label' => 'lll:ext:feusersplus/resources/private/language/locallang_db.xlf:friends',     'config' => array(         'type' => 'inline',         'foreign_table' => 'tx_feuserfriends_domain_model_friend',         'foreign_match_fields' => [             'user_from' => '###this_uid### '         ],         'foreign_table_where' => 'tx_feuserfriends_domain_model_friend.sys_language_uid=###rec_field_sys_language_uid### ',         'maxitems' => '5000'     ), ), 

i extended fe_users. works, bit configuration does't works. need items foreign_table.user_from = current_uid or foreign_table.user_to. possible ?

'friends' => array(     'label' => 'lll:ext:feusersplus/resources/private/language/locallang_db.xlf:friends',     'config' => array(         'type' => 'inline',         'foreign_table' => 'tx_feuserfriends_domain_model_friend',         'foreign_field' => 'user_from',         'symmetric_field' => 'user_to',          'maxitems' => '5000'     ), ), 

solution 'symmetric_field' => 'user_to',


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -