apprentice (77) [Avatar] Offline
#1
<h3>Zend_Db_Statement_Exception: SQLSTATE[HY000]: General error: 1364 Field 'username' doesn't have a default value</h3>

[ Typo - Ch06 - $ phpunit UsersTest.php ]

http://pastebin.com/m20ae1d7e


Csmilierogram FilesApache Software FoundationApache2.2htdocszfiach06places estsmodelsUsersTest.php
________________________________________

public function testInsert()
{
...
...
Was missing this line:

$newUser->username = 'nick';
...
...
}
________________________________________
akrabat (479) [Avatar] Offline
#2
Re: General error: 1364 Field 'username' doesn't have a default value - [Ty
Thank you smilie

Rob...
apprentice (77) [Avatar] Offline
#3
Re: General error: 1364 Field 'username' doesn't have a default value - [Ty
"A famous mathematician once said.
If you try to solve a problem that seems to large, then find a smaller problem and solve it!"


My new favourite motto for 2009 smilie