Coder Social home page Coder Social logo

Comments (11)

jonspalmer avatar jonspalmer commented on July 24, 2024 2

from single-table-inheritance.

jonspalmer avatar jonspalmer commented on July 24, 2024 1

This should now be fixed. Please checkout 0.8.7 and confirm

from single-table-inheritance.

jonspalmer avatar jonspalmer commented on July 24, 2024

Can you share code that demonstrates the problem or even better a failing test case?

from single-table-inheritance.

Levivb avatar Levivb commented on July 24, 2024

I'll check tomorrow if I can concoct an isolated example. If anything else, I could always include some screenshots from the debugger which might show the behaviour a bit better

from single-table-inheritance.

jonspalmer avatar jonspalmer commented on July 24, 2024

Screenshots from a debugger are unlikely to be of much help. Code examples or failing tests are considerably more helpful.

from single-table-inheritance.

sawisia avatar sawisia commented on July 24, 2024

I have a similar issue. fillable attributes for object are all null.

from single-table-inheritance.

jonspalmer avatar jonspalmer commented on July 24, 2024

from single-table-inheritance.

Levivb avatar Levivb commented on July 24, 2024

Hey @bostanio

I've created a clean laravel 5.7 installation with a small poc sample.
See https://github.com/Levivb/single-table-inheritance-issue-60

Steps to reproduce:

1. clone repository https://github.com/Levivb/single-table-inheritance-issue-60
2. setup database
3. run art migrate:fresh; art db:seed
4. setup webserver to point to this repository
5. go to https://laravel.test for example You'll see two dumps, one with the queries ran and one with the collection of Things which have Vehicles eager loaded
6. Expand any Thing > relations > vehicles > items > 1 in the collection and note the vehicle (Car in this case) doesn't have any attributes
7. Now open app/Vehicle.php and enable the getPivotAttributeNames method
8. Refresh the page and expand the same Car in the relations of any Thing
9. Note how the attributes array of the Car now contains the fields of the Car record

from single-table-inheritance.

slowpokefarm avatar slowpokefarm commented on July 24, 2024

Can confirm, I get the same behavior under laravel 5.5

from single-table-inheritance.

Levivb avatar Levivb commented on July 24, 2024

Confirmed 👍

from single-table-inheritance.

jonspalmer avatar jonspalmer commented on July 24, 2024

Awesome

from single-table-inheritance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.