Skip to content

Issue with attributeNames() method called on instances create by ASolrDocument::model() - #17

Open
nikhiltri wants to merge 1 commit into
phpnode:masterfrom
nikhiltri:static-model-instance-attributeNames
Open

Issue with attributeNames() method called on instances create by ASolrDocument::model()#17
nikhiltri wants to merge 1 commit into
phpnode:masterfrom
nikhiltri:static-model-instance-attributeNames

Conversation

@nikhiltri

@nikhiltri nikhiltri commented Oct 24, 2016

Copy link
Copy Markdown

Hello,

I'm having some trouble with new instances of objects created with the static ASolrDocument::model(). I created a test to verify what I'm seeing. When I run testAttributeNamesFromStaticModelMethod() I get the following error:

PHP Fatal error:  Call to a member function toArray() on a non-object in ASolrDocument.php on line 127

Fatal error: Call to a member function toArray() on a non-object in ASolrDocument.php on line 127

It looks like the init() method doesn't get run when you create an object in this way? Any help would be appreciated.

Thanks!
nikhil

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.

1 participant