<?php
$user = new User();
$user->email = $postData['email'];
$user->password = md5($postData['password']);
$user->yy = $postData['yy'];
$user->mobil = $postData['mobil'];
if ($user->save() == false) {
foreach ($user->getMessages() as $message) {
echo $message . '<br>';
}
} else {
echo 'ok';
}
When I insert a record. I will get message:
name is required
nickname is required
idcard is required
alipay is required
vip is required
ww is required
qq is required
addtime is required
updatetime is required
status is required
But these fields are not need!!! Please help me ...