質問編集履歴
1
事象について補足
test
CHANGED
File without changes
|
test
CHANGED
@@ -89,3 +89,231 @@
|
|
89
89
|
);
|
90
90
|
|
91
91
|
}
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
ちなみにデバッグでPostsTagを見ると以下のようになります。
|
100
|
+
|
101
|
+
debug($this->PostsTag);
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
object(AppModel) {
|
106
|
+
|
107
|
+
useDbConfig => 'default'
|
108
|
+
|
109
|
+
useTable => 'posts_tags'
|
110
|
+
|
111
|
+
id => null
|
112
|
+
|
113
|
+
data => array()
|
114
|
+
|
115
|
+
schemaName => null
|
116
|
+
|
117
|
+
table => 'posts_tags'
|
118
|
+
|
119
|
+
primaryKey => 'id'
|
120
|
+
|
121
|
+
validate => array()
|
122
|
+
|
123
|
+
validationErrors => array()
|
124
|
+
|
125
|
+
validationDomain => null
|
126
|
+
|
127
|
+
plugin => null
|
128
|
+
|
129
|
+
name => 'PostsTag'
|
130
|
+
|
131
|
+
alias => 'PostsTag'
|
132
|
+
|
133
|
+
tableToModel => array(
|
134
|
+
|
135
|
+
'posts_tags' => 'PostsTag'
|
136
|
+
|
137
|
+
)
|
138
|
+
|
139
|
+
cacheQueries => false
|
140
|
+
|
141
|
+
belongsTo => array()
|
142
|
+
|
143
|
+
hasOne => array()
|
144
|
+
|
145
|
+
hasMany => array()
|
146
|
+
|
147
|
+
hasAndBelongsToMany => array()
|
148
|
+
|
149
|
+
actsAs => null
|
150
|
+
|
151
|
+
Behaviors => object(BehaviorCollection) {
|
152
|
+
|
153
|
+
modelName => 'PostsTag'
|
154
|
+
|
155
|
+
defaultPriority => (int) 10
|
156
|
+
|
157
|
+
[protected] _methods => array()
|
158
|
+
|
159
|
+
[protected] _mappedMethods => array()
|
160
|
+
|
161
|
+
[protected] _enabled => array()
|
162
|
+
|
163
|
+
[protected] _loaded => array()
|
164
|
+
|
165
|
+
}
|
166
|
+
|
167
|
+
whitelist => array()
|
168
|
+
|
169
|
+
cacheSources => true
|
170
|
+
|
171
|
+
findQueryType => null
|
172
|
+
|
173
|
+
recursive => (int) 1
|
174
|
+
|
175
|
+
order => null
|
176
|
+
|
177
|
+
virtualFields => array()
|
178
|
+
|
179
|
+
__backAssociation => array()
|
180
|
+
|
181
|
+
__backInnerAssociation => array()
|
182
|
+
|
183
|
+
__backOriginalAssociation => array()
|
184
|
+
|
185
|
+
__backContainableAssociation => array()
|
186
|
+
|
187
|
+
__safeUpdateMode => false
|
188
|
+
|
189
|
+
useConsistentAfterFind => true
|
190
|
+
|
191
|
+
findMethods => array(
|
192
|
+
|
193
|
+
'all' => true,
|
194
|
+
|
195
|
+
'first' => true,
|
196
|
+
|
197
|
+
'count' => true,
|
198
|
+
|
199
|
+
'neighbors' => true,
|
200
|
+
|
201
|
+
'list' => true,
|
202
|
+
|
203
|
+
'threaded' => true
|
204
|
+
|
205
|
+
)
|
206
|
+
|
207
|
+
[protected] _schema => null
|
208
|
+
|
209
|
+
[protected] _associationKeys => array(
|
210
|
+
|
211
|
+
'belongsTo' => array(
|
212
|
+
|
213
|
+
(int) 0 => 'className',
|
214
|
+
|
215
|
+
(int) 1 => 'foreignKey',
|
216
|
+
|
217
|
+
(int) 2 => 'conditions',
|
218
|
+
|
219
|
+
(int) 3 => 'fields',
|
220
|
+
|
221
|
+
(int) 4 => 'order',
|
222
|
+
|
223
|
+
(int) 5 => 'counterCache'
|
224
|
+
|
225
|
+
),
|
226
|
+
|
227
|
+
'hasOne' => array(
|
228
|
+
|
229
|
+
(int) 0 => 'className',
|
230
|
+
|
231
|
+
(int) 1 => 'foreignKey',
|
232
|
+
|
233
|
+
(int) 2 => 'conditions',
|
234
|
+
|
235
|
+
(int) 3 => 'fields',
|
236
|
+
|
237
|
+
(int) 4 => 'order',
|
238
|
+
|
239
|
+
(int) 5 => 'dependent'
|
240
|
+
|
241
|
+
),
|
242
|
+
|
243
|
+
'hasMany' => array(
|
244
|
+
|
245
|
+
(int) 0 => 'className',
|
246
|
+
|
247
|
+
(int) 1 => 'foreignKey',
|
248
|
+
|
249
|
+
(int) 2 => 'conditions',
|
250
|
+
|
251
|
+
(int) 3 => 'fields',
|
252
|
+
|
253
|
+
(int) 4 => 'order',
|
254
|
+
|
255
|
+
(int) 5 => 'limit',
|
256
|
+
|
257
|
+
(int) 6 => 'offset',
|
258
|
+
|
259
|
+
(int) 7 => 'dependent',
|
260
|
+
|
261
|
+
(int) 8 => 'exclusive',
|
262
|
+
|
263
|
+
(int) 9 => 'finderQuery',
|
264
|
+
|
265
|
+
(int) 10 => 'counterQuery'
|
266
|
+
|
267
|
+
),
|
268
|
+
|
269
|
+
'hasAndBelongsToMany' => array(
|
270
|
+
|
271
|
+
(int) 0 => 'className',
|
272
|
+
|
273
|
+
(int) 1 => 'joinTable',
|
274
|
+
|
275
|
+
(int) 2 => 'with',
|
276
|
+
|
277
|
+
(int) 3 => 'foreignKey',
|
278
|
+
|
279
|
+
(int) 4 => 'associationForeignKey',
|
280
|
+
|
281
|
+
(int) 5 => 'conditions',
|
282
|
+
|
283
|
+
(int) 6 => 'fields',
|
284
|
+
|
285
|
+
(int) 7 => 'order',
|
286
|
+
|
287
|
+
(int) 8 => 'limit',
|
288
|
+
|
289
|
+
(int) 9 => 'offset',
|
290
|
+
|
291
|
+
(int) 10 => 'unique',
|
292
|
+
|
293
|
+
(int) 11 => 'finderQuery'
|
294
|
+
|
295
|
+
)
|
296
|
+
|
297
|
+
)
|
298
|
+
|
299
|
+
[protected] _associations => array(
|
300
|
+
|
301
|
+
(int) 0 => 'belongsTo',
|
302
|
+
|
303
|
+
(int) 1 => 'hasOne',
|
304
|
+
|
305
|
+
(int) 2 => 'hasMany',
|
306
|
+
|
307
|
+
(int) 3 => 'hasAndBelongsToMany'
|
308
|
+
|
309
|
+
)
|
310
|
+
|
311
|
+
[protected] _insertID => null
|
312
|
+
|
313
|
+
[protected] _sourceConfigured => false
|
314
|
+
|
315
|
+
[protected] _eventManager => null
|
316
|
+
|
317
|
+
[protected] _validator => null
|
318
|
+
|
319
|
+
}
|