PHP error

I generate my code php with VisualParadigm and edit CreatexxxData.php to add a register.

my CreatexxxData:


require_once 'classes/CidadeDAO.php';
class CreatexxxData {
	
	public function createTestData() {
		$cidade = CidadeDAO::createCidade();
		$cidade->nome = "City name";
		CidadeDAO::save($cidade);
	}
}

$createAlianzaData = new CreatexxxData();
$createAlianzaData->createTestData();

the data are included but show that error:

Notice: Undefined offset: 1 in /xx/xx/workPHP/xxx/lib/phporm/src/runtime/epObject.php on line 1404

Notice: Undefined offset: 1 in /xx/xx/workPHP/xxx/lib/phporm/src/db/epDbObject.php on line 1978

Notice: Undefined offset: 1 in /xx/xx/workPHP/xxx/lib/phporm/src/runtime/epObject.php on line 1404

can help?

tanks

Hi Hussan,

Thanks for your post. Would you mind sending me the files listed below for repeating your problem? Thanks in advance!

  1. your project file
  2. sample data in database
  3. sample code

*If you do not want the files to be accessible by the public, please send them to lilian@visual-paradigm.com

Best regards,
Lilian Wong

Hi Lilian

tanks for your reply, i create a new project and work fine

h2

Hi Hussan,

Thanks for your reply. I’m glad that your problem is solved. If there is anything I can help, pleased do not hesitate to ask.

Best regards,
Lilian Wong