[BUGFIX] Respect tablenames, fieldname when updating mm record
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Functional / Persistence / Fixtures / category-mm.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <dataset>
3 <!-- post 1 gets categories 1,2,3 -->
4 <sys_category_record_mm>
5 <uid_local>1</uid_local>
6 <uid_foreign>1</uid_foreign>
7 <tablenames>tx_blogexample_domain_model_post</tablenames>
8 <fieldname>categories</fieldname>
9 <sorting>1</sorting>
10 <sorting_foreign>1</sorting_foreign>
11 </sys_category_record_mm>
12 <sys_category_record_mm>
13 <uid_local>2</uid_local>
14 <uid_foreign>1</uid_foreign>
15 <tablenames>tx_blogexample_domain_model_post</tablenames>
16 <fieldname>categories</fieldname>
17 <sorting>1</sorting>
18 <sorting_foreign>2</sorting_foreign>
19 </sys_category_record_mm>
20 <sys_category_record_mm>
21 <uid_local>3</uid_local>
22 <uid_foreign>1</uid_foreign>
23 <tablenames>tx_blogexample_domain_model_post</tablenames>
24 <fieldname>categories</fieldname>
25 <sorting>1</sorting>
26 <sorting_foreign>3</sorting_foreign>
27 </sys_category_record_mm>
28
29 <!-- post 2 gets category 1 -->
30 <sys_category_record_mm>
31 <uid_local>1</uid_local>
32 <uid_foreign>2</uid_foreign>
33 <tablenames>tx_blogexample_domain_model_post</tablenames>
34 <fieldname>categories</fieldname>
35 <sorting>1</sorting>
36 <sorting_foreign>2</sorting_foreign>
37 </sys_category_record_mm>
38
39 <!-- some bogus records to test MM_match_fields -->
40 <sys_category_record_mm>
41 <uid_local>4</uid_local>
42 <uid_foreign>1</uid_foreign>
43 <tablenames>tx_my_extension</tablenames>
44 <fieldname>categories</fieldname>
45 <sorting>1</sorting>
46 <sorting_foreign>2</sorting_foreign>
47 </sys_category_record_mm>
48
49 <!-- blog 1 gets categories 1,2,3 -->
50 <sys_category_record_mm>
51 <uid_local>1</uid_local>
52 <uid_foreign>1</uid_foreign>
53 <tablenames>tx_blogexample_domain_model_blog</tablenames>
54 <fieldname>categories</fieldname>
55 <sorting>1</sorting>
56 <sorting_foreign>1</sorting_foreign>
57 </sys_category_record_mm>
58 <sys_category_record_mm>
59 <uid_local>2</uid_local>
60 <uid_foreign>1</uid_foreign>
61 <tablenames>tx_blogexample_domain_model_blog</tablenames>
62 <fieldname>categories</fieldname>
63 <sorting>1</sorting>
64 <sorting_foreign>2</sorting_foreign>
65 </sys_category_record_mm>
66 <sys_category_record_mm>
67 <uid_local>4</uid_local>
68 <uid_foreign>1</uid_foreign>
69 <tablenames>tx_blogexample_domain_model_blog</tablenames>
70 <fieldname>categories</fieldname>
71 <sorting>1</sorting>
72 <sorting_foreign>3</sorting_foreign>
73 </sys_category_record_mm>
74
75 <!-- blog 2 gets category 2 -->
76 <sys_category_record_mm>
77 <uid_local>2</uid_local>
78 <uid_foreign>2</uid_foreign>
79 <tablenames>tx_blogexample_domain_model_blog</tablenames>
80 <fieldname>categories</fieldname>
81 <sorting>1</sorting>
82 <sorting_foreign>1</sorting_foreign>
83 </sys_category_record_mm>
84 </dataset>