Max

Results 81 comments of Max

@oohdeveloper looks like you are not on an oracle connection! fix that first...you are using mysql there ;)

please have a look at how all this is implemented: https://github.com/yajra/laravel-oci8/blob/5.6/src/Oci8/Oci8Connection.php#L219 i must admit its far away from perfect & good documented. do you have the function code? would like...

normally everything is closed automatically by `__destruct ` must be some issues with your shutdown process in your app...

okay yeah this could be added of course, but did you try to enable persistent connection? internally it uses `pconnect` see: https://github.com/yajra/pdo-via-oci8/blob/c85f61cf38f7251d1091cddb9e62f261c421075a/src/Pdo/Oci8.php#L454

@seminsergey than please try it out, usually its a really good idea to use persistent connections to dbs etc..... helps you to reduce connection overhead...

did you recheck that this column exists in your table?..the error message is clearly! or are you on the wrong connection?

maybe your primary keys are different than defaults... looks like its a problem on your side

@jokeronaldo the definition for this relationship is: `return $this->hasMany('App\Comment', 'foreign_key', 'local_key');` you have a select there also...why? put that to the calling place not in the relation defintion

yeah i have seen your sql output...but what about this: ``` public function valor() { return $this->hasMany('Models\Tgfexc', 'CODPROD') ->select('VLRVENDA'); } ``` select() shouldn't be there....

@jokeronaldo ok sry then... for me relations work fine so far ;)