I am new to Symfony and Doctrine and I am trying to work my way through the Jobeet tutorial (using v1.4). I am currently stuck at the following command:
php symfony doctrine:insert-sql It gives me the following error in Terminal (I'm using a Mac 10.5.8): SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected. Failing Query: "CREATE TABLE jobeet_affiliate (id BIGINT AUTO_INCREMENT, url VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL UNIQUE, token VARCHAR(255) NOT NULL, is_active TINYINT(1) DEFAULT '0' NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(id)) ENGINE = INNODB". Failing Query: CREATE TABLE jobeet_affiliate (id BIGINT AUTO_INCREMENT, url VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL UNIQUE, token VARCHAR(255) NOT NULL, is_active TINYINT(1) DEFAULT '0' NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(id)) ENGINE = INNODB The preceding commands work fine: doctrine:build --model doctrine:build-sql It's just the insert-sql bit that doesn't work. I have been scouring the internet all day (8 hours straight) trying to find a solution to this. Any help would be hugely appreciated. I need to learn this Framework asap and get started using it on an important project so the pressure is really on. Thanks! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en