mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 11:02:40 +00:00
defining $fields in Model::loadInfo()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5699 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
72de81ce74
commit
908f4c8a39
1 changed files with 1 additions and 0 deletions
|
@ -847,6 +847,7 @@ class Model extends Overloadable {
|
|||
*/
|
||||
function loadInfo($clear = false) {
|
||||
$info = $this->schema($clear);
|
||||
$fields = array();
|
||||
foreach($info->value as $field => $value) {
|
||||
$fields[] = am(array('name'=> $field), $value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue