Closed philliphartin closed 1 year ago
Hi, I am having the exact issue as above, furthermore, when I add a new entry to my "books" collection, I get the following error:
"message": "array_diff(): Argument #1 ($array) must be of type array, int given", "exception": "TypeError", "file": "F:\\GitHub\\childmindinguk\\vendor\\stillat\\relationships\\src\\Comparisons\\ListComparator.php", "line": 34, "trace": [ { "file": "F:\\GitHub\\childmindinguk\\vendor\\stillat\\relationships\\src\\Comparisons\\ListComparator.php", "line": 34, "function": "array_diff" }, ...
System Details Statamic 3.3.37 Stillat/relationships 1.1.1 PHP: 8.1 Users in database local xampp dev environment
It is my understanding that it should be producing a related field of author in the books entry, and an array of related books in the author entry, I am at a bit of a loss as to where the integer is coming from?
Thanks.
Should just need to update to 1.1.2
🙂
Firstly, thank you for this fantastic package.
I'm having an issue running the
relate:fill
command. I am receiving the following error:The relationship is configured as follows in
AppServiceProvider
:I'm not sure what's causing the issue. I've played around with manual relationships as well but always get the error. In addition when I run
relate:list
my console output has [entry] prefixed to each collectionI'm not sure if this is relevant to the issue, but I thought it may add some more context.
System Details Statamic
3.3.37
Stillat/relationships1.1.1
PHP:8.1
Running on a default local valet dev environment