Giter Club home page Giter Club logo

Comments (4)

wizardist avatar wizardist commented on May 25, 2024

Hi @mapb1990

Assuming edirect_amount is the right name for the field, could you update the library to the latest version and try to reproduce? I cannot locate any statement accessing the Entity attributes on line 561.

from php-crm-toolkit.

mapb1990 avatar mapb1990 commented on May 25, 2024

first exception it is in entity construct (vendor/alexacrm/php-crm-toolkit/src/Entity.php:104)

foreach ( $this->attributes as $attribute ) {

and the second is on call create method (vendor/alexacrm/php-crm-toolkit/src/Entity.php:561)

foreach ( $this->attributes as $property => $propertyDetails ) {

from php-crm-toolkit.

georged avatar georged commented on May 25, 2024

@mapb1990 can you make sure you use the latest version because line 561 contains nothing like what you mention. Also, just to make sure we've got the right prefix, can you try something like:

$paymentEntity = $this->client->entity('custom_payments');
$paymentEntity->edirect_name = 'Foobar';
return $paymentEntity->create();

If that fails, can you upload a screenshot with the list of fields for the custom_payment entity (or drop customisation file that includes only that entity)

from php-crm-toolkit.

wizardist avatar wizardist commented on May 25, 2024

@mapb1990 could you share your PHP version as well? This looks very odd.

from php-crm-toolkit.

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.