1
votes

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;
1
It appears your attendances table doesn't comply with CakePHP standards. Please post structure of your attendances table - Ish
dateTime column name should be datetime or date_time as per CakePHP conventions ( book.cakephp.org/view/903/Model-and-Database-Conventions ). Change it and retry. - Ish

1 Answers

1
votes

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.