Hi there
I have the latest stable Cake (April 5) and try my first steps locally
with xampp. I also have an existing database with 4 tables and quite a
number of records already inserted.
3 tables can be scaffolded and baken just fine, but with one table
(shwh_context), I receive the following error either when accessing
its scaffolded view or bake the view:
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
allocate 39 bytes) in D:\xampplite\htdocs\cake\cake\libs\model\dbo
\dbo_mysql.php on line 445
Models and controllers are baken just fine. The table contains already
about 8'000 entries. However, an associated table called "shwh_entry"
has also about 7900 entries and works just fine. The table structure
and the baked model is attached below.
What would you suggest to hunt for?
Thanks
Stephan
---------------------------------------------
Table (I use the prefix "shwh_" in config/database.php):
CREATE TABLE shwh_contexts (
id int(11) unsigned NOT NULL auto_increment,
typecontext_id int(10) unsigned NOT NULL default '0',
entry_id int(10) unsigned NOT NULL default '0',
`Text` text collate latin1_general_ci,
ImageFile varchar(255) collate latin1_general_ci default NULL,
AudioFile varchar(255) collate latin1_general_ci default NULL,
VideoFile varchar(255) collate latin1_general_ci default NULL,
DocumentFile varchar(255) collate latin1_general_ci default NULL,
URL varchar(255) collate latin1_general_ci default NULL,
created date default NULL,
modified date default NULL,
PRIMARY KEY (id)
)
---------------------------------------------
Model:
<?php
class Context extends AppModel {
var $name = 'Context';
//The Associations below have been created with all possible keys,
those that are not needed can be removed
var $belongsTo = array(
'Typecontext' =>
array('className' => 'Typecontext',
'foreignKey' =>
'typecontext_id',
'conditions' => '',
'fields' => '',
'order' => '',
'counterCache' => ''
),
'Entry' =>
array('className' => 'Entry',
'foreignKey' => 'entry_id',
'conditions' => '',
'fields' => '',
'order' => '',
'counterCache' => ''
),
);
}
?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---