Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jul 10, 2015

  • Added a working example for the current Eloquent ORM (5.1) in the README.md.
  • Fixed usage of phpmig.php for latest Eloquent.
  • Fixed Illuminate Database.php Adapter for accessing migrations (Cannot use object of type stdClass as array error)

…EADME.md.

- Fixed usage of phpmig.php for latest Eloquent.
- Fixed Illuminate Database.php for accessing migrations (Cannot use object of type stdClass as array)
@davedevelopment
Copy link
Owner

Thanks! Will this still work with older versions of Eloquent?

@ghost
Copy link
Author

ghost commented Jul 17, 2015

Sorry, I haven't tested it with Eloquent < 5. I think that this will not work as accessing the Eloquent Entity changed there.

@Priet
Copy link

Priet commented Jul 18, 2015

Another option is to change the fetch mode back to 'assoc':

$capsule->setFetchMode(\PDO::FETCH_ASSOC);

Add this line to the Capsule configuration and you're good to go :)

@davedevelopment
Copy link
Owner

Closed in favour of #83, please feel free to open a new PR with the README additions etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants