モデルにおけるフィールド名のconst
/** * phpname type * e.g. 'AuthorId' */ const TYPE_PHPNAME = 'phpName'; /** * studlyphpname type * e.g. 'authorId' */ const TYPE_STUDLYPHPNAME = 'studlyPhpName'; /** * column (peer) name type * e.g. 'book.AUTHOR_ID' */ const TYPE_COLNAME = 'colName'; /** * column fieldname type * e.g. 'author_id' */ const TYPE_FIELDNAME = 'fieldName'; /** * num type * simply the numerical array index, e.g. 4 */ const TYPE_NUM = 'num';
toArray()とかのデフォルトはPHPNAME