Harsha M V
Harsha M V

Reputation: 54969

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;

Upvotes: 1

Views: 765

Answers (1)

Leo
Leo

Reputation: 6571

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.

Upvotes: 1

Related Questions