cakephpcakephp-1.3cakephp-bake

Cake Bake error


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;

Solution

  • 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.