1

i am trying to use cakes baking console and when i use cake bake model all

i am getting the following error

enter image description here

Attendance Table Structure

CREATE  TABLE IF NOT EXISTS `mydb`.`attendences` (
  `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT ,
  `dateTime` DATETIME NULL ,
  PRIMARY KEY (`id`) )
ENGINE = InnoDB;
tereško
  • 58,060
  • 25
  • 98
  • 150
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
  • It appears your attendances table doesn't comply with CakePHP standards. Please post structure of your `attendances table` – Ish Feb 04 '11 at 20:27
  • `dateTime` column name should be `datetime` or `date_time` as per CakePHP conventions ( http://book.cakephp.org/view/903/Model-and-Database-Conventions ). Change it and retry. – Ish Feb 07 '11 at 16:09

1 Answers1

1

Rather than baking it all at once, do it table-by-table and model-controller-view separately. That way you'll be able to pin down the error.

Have you created any fixtures correctly? See http://book.cakephp.org/view/360/Creating-fixtures and check the syntax is correct, particularly in the array definitions.

Leo
  • 6,553
  • 2
  • 29
  • 48