RedBean_Exception_SQL Object
(
    [sqlState:RedBean_Exception_SQL:private] => 23000
    [message:protected] => SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`BroaQseeM-3230b42b`.`merchant`, CONSTRAINT `cons_fk_merchant_user_id_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION)
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /home/sites/2b/a/a4199d3a65/classes/R.php
    [line:protected] => 265
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/sites/2b/a/a4199d3a65/classes/R.php
                    [line] => 274
                    [function] => runQuery
                    [class] => RedBean_Driver_PDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => INSERT INTO `merchant` ( id, `pageviews` ) VALUES 
			( NULL,  ?  ) 
                            [1] => Array
                                (
                                    [0] => 1
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/sites/2b/a/a4199d3a65/classes/R.php
                    [line] => 281
                    [function] => GetAll
                    [class] => RedBean_Driver_PDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => INSERT INTO `merchant` ( id, `pageviews` ) VALUES 
			( NULL,  ?  ) 
                            [1] => Array
                                (
                                    [0] => 1
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/sites/2b/a/a4199d3a65/classes/R.php
                    [line] => 1455
                    [function] => GetCol
                    [class] => RedBean_Driver_PDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => INSERT INTO `merchant` ( id, `pageviews` ) VALUES 
			( NULL,  ?  ) 
                            [1] => Array
                                (
                                    [0] => 1
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /home/sites/2b/a/a4199d3a65/classes/R.php
                    [line] => 1840
                    [function] => getCell
                    [class] => RedBean_Adapter_DBAdapter
                    [type] => ->
                    [args] => Array
                        (
                            [0] => INSERT INTO `merchant` ( id, `pageviews` ) VALUES 
			( NULL,  ?  ) 
                            [1] => Array
                                (
                                    [0] => 1
                                )

                            [2] => 0
                        )

                )

            [4] => Array
                (
                    [file] => /home/sites/2b/a/a4199d3a65/classes/R.php
                    [line] => 1804
                    [function] => insertRecord
                    [class] => RedBean_QueryWriter_AQueryWriter
                    [type] => ->
                    [args] => Array
                        (
                            [0] => merchant
                            [1] => Array
                                (
                                    [0] => pageviews
                                )

                            [2] => Array
                                (
                                    [0] => Array
                                        (
                                            [0] => 1
                                        )

                                )

                        )

                )

            [5] => Array
                (
                    [file] => /home/sites/2b/a/a4199d3a65/classes/R.php
                    [line] => 3755
                    [function] => updateRecord
                    [class] => RedBean_QueryWriter_AQueryWriter
                    [type] => ->
                    [args] => Array
                        (
                            [0] => merchant
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [property] => pageviews
                                            [value] => 1
                                        )

                                )

                            [2] => 0
                        )

                )

            [6] => Array
                (
                    [file] => /home/sites/2b/a/a4199d3a65/classes/R.php
                    [line] => 3671
                    [function] => storeBean
                    [class] => RedBean_OODB
                    [type] => ->
                    [args] => Array
                        (
                            [0] => RedBean_OODBBean Object
                                (
                                    [flagSkipBeau:RedBean_OODBBean:private] => 
                                    [properties:RedBean_OODBBean:private] => Array
                                        (
                                            [id] => 0
                                            [pageviews] => 1
                                        )

                                    [__info:RedBean_OODBBean:private] => Array
                                        (
                                            [type] => merchant
                                            [sys.id] => id
                                            [tainted] => 1
                                            [sys.orig] => Array
                                                (
                                                    [id] => 0
                                                )

                                            [model] => Model_Merchant Object
                                                (
                                                    [id] => 
                                                    [firstname] => 
                                                    [lastname] => 
                                                    [username] => 
                                                    [companyname] => 
                                                    [address1] => 
                                                    [address2] => 
                                                    [address3] => 
                                                    [county] => 
                                                    [postcode] => 
                                                    [country] => 
                                                    [phone] => 
                                                    [fax] => 
                                                    [mobile] => 
                                                    [url] => 
                                                    [lat] => 
                                                    [long] => 
                                                    [user_id] => 
                                                    [images] => 
                                                    [level] => 
                                                    [bean:protected] => RedBean_OODBBean Object
 *RECURSION*
                                                )

                                        )

                                    [beanHelper:RedBean_OODBBean:private] => RedBean_BeanHelper_Facade Object
                                        (
                                        )

                                    [fetchType:RedBean_OODBBean:private] => 
                                    [withSql:RedBean_OODBBean:private] => 
                                    [withParams:RedBean_OODBBean:private] => Array
                                        (
                                        )

                                    [aliasName:RedBean_OODBBean:private] => 
                                )

                        )

                )

            [7] => Array
                (
                    [file] => /home/sites/2b/a/a4199d3a65/classes/R.php
                    [line] => 5664
                    [function] => store
                    [class] => RedBean_OODB
                    [type] => ->
                    [args] => Array
                        (
                            [0] => RedBean_OODBBean Object
                                (
                                    [flagSkipBeau:RedBean_OODBBean:private] => 
                                    [properties:RedBean_OODBBean:private] => Array
                                        (
                                            [id] => 0
                                            [pageviews] => 1
                                        )

                                    [__info:RedBean_OODBBean:private] => Array
                                        (
                                            [type] => merchant
                                            [sys.id] => id
                                            [tainted] => 1
                                            [sys.orig] => Array
                                                (
                                                    [id] => 0
                                                )

                                            [model] => Model_Merchant Object
                                                (
                                                    [id] => 
                                                    [firstname] => 
                                                    [lastname] => 
                                                    [username] => 
                                                    [companyname] => 
                                                    [address1] => 
                                                    [address2] => 
                                                    [address3] => 
                                                    [county] => 
                                                    [postcode] => 
                                                    [country] => 
                                                    [phone] => 
                                                    [fax] => 
                                                    [mobile] => 
                                                    [url] => 
                                                    [lat] => 
                                                    [long] => 
                                                    [user_id] => 
                                                    [images] => 
                                                    [level] => 
                                                    [bean:protected] => RedBean_OODBBean Object
 *RECURSION*
                                                )

                                        )

                                    [beanHelper:RedBean_OODBBean:private] => RedBean_BeanHelper_Facade Object
                                        (
                                        )

                                    [fetchType:RedBean_OODBBean:private] => 
                                    [withSql:RedBean_OODBBean:private] => 
                                    [withParams:RedBean_OODBBean:private] => Array
                                        (
                                        )

                                    [aliasName:RedBean_OODBBean:private] => 
                                )

                        )

                )

            [8] => Array
                (
                    [file] => /home/sites/2b/a/a4199d3a65/controllers/businessController.php
                    [line] => 74
                    [function] => store
                    [class] => RedBean_Facade
                    [type] => ::
                    [args] => Array
                        (
                            [0] => RedBean_OODBBean Object
                                (
                                    [flagSkipBeau:RedBean_OODBBean:private] => 
                                    [properties:RedBean_OODBBean:private] => Array
                                        (
                                            [id] => 0
                                            [pageviews] => 1
                                        )

                                    [__info:RedBean_OODBBean:private] => Array
                                        (
                                            [type] => merchant
                                            [sys.id] => id
                                            [tainted] => 1
                                            [sys.orig] => Array
                                                (
                                                    [id] => 0
                                                )

                                            [model] => Model_Merchant Object
                                                (
                                                    [id] => 
                                                    [firstname] => 
                                                    [lastname] => 
                                                    [username] => 
                                                    [companyname] => 
                                                    [address1] => 
                                                    [address2] => 
                                                    [address3] => 
                                                    [county] => 
                                                    [postcode] => 
                                                    [country] => 
                                                    [phone] => 
                                                    [fax] => 
                                                    [mobile] => 
                                                    [url] => 
                                                    [lat] => 
                                                    [long] => 
                                                    [user_id] => 
                                                    [images] => 
                                                    [level] => 
                                                    [bean:protected] => RedBean_OODBBean Object
 *RECURSION*
                                                )

                                        )

                                    [beanHelper:RedBean_OODBBean:private] => RedBean_BeanHelper_Facade Object
                                        (
                                        )

                                    [fetchType:RedBean_OODBBean:private] => 
                                    [withSql:RedBean_OODBBean:private] => 
                                    [withParams:RedBean_OODBBean:private] => Array
                                        (
                                        )

                                    [aliasName:RedBean_OODBBean:private] => 
                                )

                        )

                )

            [9] => Array
                (
                    [file] => /home/sites/2b/a/a4199d3a65/classes/Controller.php
                    [line] => 12
                    [function] => detail
                    [class] => businessController
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Ashley+Blinds+and+Curtains
                        )

                )

            [10] => Array
                (
                    [file] => /home/sites/2b/a/a4199d3a65/classes/Dispatcher.php
                    [line] => 104
                    [function] => wrap_call_user_func_array
                    [class] => Controller
                    [type] => ->
                    [args] => Array
                        (
                            [0] => businessController Object
                                (
                                )

                            [1] => detail
                            [2] => Array
                                (
                                    [0] => Ashley+Blinds+and+Curtains
                                )

                        )

                )

            [11] => Array
                (
                    [file] => /home/sites/2b/a/a4199d3a65/classes/Dispatcher.php
                    [line] => 72
                    [function] => dispatch
                    [class] => Dispatcher
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [12] => Array
                (
                    [file] => /home/sites/2b/a/a4199d3a65/public_html/index.php
                    [line] => 92
                    [function] => run
                    [class] => Dispatcher
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

        )

    [previous:Exception:private] => 
)