質問編集履歴
1
事象について補足
title
CHANGED
File without changes
|
body
CHANGED
@@ -43,4 +43,118 @@
|
|
43
43
|
'order' => ''
|
44
44
|
)
|
45
45
|
);
|
46
|
+
}
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
ちなみにデバッグでPostsTagを見ると以下のようになります。
|
51
|
+
debug($this->PostsTag);
|
52
|
+
|
53
|
+
object(AppModel) {
|
54
|
+
useDbConfig => 'default'
|
55
|
+
useTable => 'posts_tags'
|
56
|
+
id => null
|
57
|
+
data => array()
|
58
|
+
schemaName => null
|
59
|
+
table => 'posts_tags'
|
60
|
+
primaryKey => 'id'
|
61
|
+
validate => array()
|
62
|
+
validationErrors => array()
|
63
|
+
validationDomain => null
|
64
|
+
plugin => null
|
65
|
+
name => 'PostsTag'
|
66
|
+
alias => 'PostsTag'
|
67
|
+
tableToModel => array(
|
68
|
+
'posts_tags' => 'PostsTag'
|
69
|
+
)
|
70
|
+
cacheQueries => false
|
71
|
+
belongsTo => array()
|
72
|
+
hasOne => array()
|
73
|
+
hasMany => array()
|
74
|
+
hasAndBelongsToMany => array()
|
75
|
+
actsAs => null
|
76
|
+
Behaviors => object(BehaviorCollection) {
|
77
|
+
modelName => 'PostsTag'
|
78
|
+
defaultPriority => (int) 10
|
79
|
+
[protected] _methods => array()
|
80
|
+
[protected] _mappedMethods => array()
|
81
|
+
[protected] _enabled => array()
|
82
|
+
[protected] _loaded => array()
|
83
|
+
}
|
84
|
+
whitelist => array()
|
85
|
+
cacheSources => true
|
86
|
+
findQueryType => null
|
87
|
+
recursive => (int) 1
|
88
|
+
order => null
|
89
|
+
virtualFields => array()
|
90
|
+
__backAssociation => array()
|
91
|
+
__backInnerAssociation => array()
|
92
|
+
__backOriginalAssociation => array()
|
93
|
+
__backContainableAssociation => array()
|
94
|
+
__safeUpdateMode => false
|
95
|
+
useConsistentAfterFind => true
|
96
|
+
findMethods => array(
|
97
|
+
'all' => true,
|
98
|
+
'first' => true,
|
99
|
+
'count' => true,
|
100
|
+
'neighbors' => true,
|
101
|
+
'list' => true,
|
102
|
+
'threaded' => true
|
103
|
+
)
|
104
|
+
[protected] _schema => null
|
105
|
+
[protected] _associationKeys => array(
|
106
|
+
'belongsTo' => array(
|
107
|
+
(int) 0 => 'className',
|
108
|
+
(int) 1 => 'foreignKey',
|
109
|
+
(int) 2 => 'conditions',
|
110
|
+
(int) 3 => 'fields',
|
111
|
+
(int) 4 => 'order',
|
112
|
+
(int) 5 => 'counterCache'
|
113
|
+
),
|
114
|
+
'hasOne' => array(
|
115
|
+
(int) 0 => 'className',
|
116
|
+
(int) 1 => 'foreignKey',
|
117
|
+
(int) 2 => 'conditions',
|
118
|
+
(int) 3 => 'fields',
|
119
|
+
(int) 4 => 'order',
|
120
|
+
(int) 5 => 'dependent'
|
121
|
+
),
|
122
|
+
'hasMany' => array(
|
123
|
+
(int) 0 => 'className',
|
124
|
+
(int) 1 => 'foreignKey',
|
125
|
+
(int) 2 => 'conditions',
|
126
|
+
(int) 3 => 'fields',
|
127
|
+
(int) 4 => 'order',
|
128
|
+
(int) 5 => 'limit',
|
129
|
+
(int) 6 => 'offset',
|
130
|
+
(int) 7 => 'dependent',
|
131
|
+
(int) 8 => 'exclusive',
|
132
|
+
(int) 9 => 'finderQuery',
|
133
|
+
(int) 10 => 'counterQuery'
|
134
|
+
),
|
135
|
+
'hasAndBelongsToMany' => array(
|
136
|
+
(int) 0 => 'className',
|
137
|
+
(int) 1 => 'joinTable',
|
138
|
+
(int) 2 => 'with',
|
139
|
+
(int) 3 => 'foreignKey',
|
140
|
+
(int) 4 => 'associationForeignKey',
|
141
|
+
(int) 5 => 'conditions',
|
142
|
+
(int) 6 => 'fields',
|
143
|
+
(int) 7 => 'order',
|
144
|
+
(int) 8 => 'limit',
|
145
|
+
(int) 9 => 'offset',
|
146
|
+
(int) 10 => 'unique',
|
147
|
+
(int) 11 => 'finderQuery'
|
148
|
+
)
|
149
|
+
)
|
150
|
+
[protected] _associations => array(
|
151
|
+
(int) 0 => 'belongsTo',
|
152
|
+
(int) 1 => 'hasOne',
|
153
|
+
(int) 2 => 'hasMany',
|
154
|
+
(int) 3 => 'hasAndBelongsToMany'
|
155
|
+
)
|
156
|
+
[protected] _insertID => null
|
157
|
+
[protected] _sourceConfigured => false
|
158
|
+
[protected] _eventManager => null
|
159
|
+
[protected] _validator => null
|
46
160
|
}
|