DataBase Error

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
gnabin01
Posts: 8
Joined: 08 Dec 2015, 05:58

DataBase Error

Post by gnabin01 » 12 Dec 2015, 11:22

I am new o laravel and aimeos too.I was trying to add stock level and product property type. It shows an error like this :

Error (-1)
Executing statement "
INSERT INTO "mshop_product_property" (
"parentid", "siteid", "typeid", "langid", "value", "mtime", "editor",
"ctime"
) VALUES (
0, 1, 1, 'en', '100', '2015-12-12 11:20:28', '', '2015-12-12 11:20:28'
)
" failed: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails ("iseeyoo"."mshop_product_property", CONSTRAINT "fk_mspropr_parentid" FOREIGN KEY ("parentid") REFERENCES "mshop_product" ("id") ON DELETE CASCADE ON UPDATE CASCADE)

How can it be solved??

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: DataBase Error

Post by aimeos » 12 Dec 2015, 11:58

Which version are you using? Tried with both, 1.2.x and dev-master and they work as expected.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

gnabin01
Posts: 8
Joined: 08 Dec 2015, 05:58

Re: DataBase Error

Post by gnabin01 » 13 Dec 2015, 04:01

I am using version 1.2.

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: DataBase Error

Post by aimeos » 13 Dec 2015, 11:26

I think this happens according to your wrong document root.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply