etrepat / baum

Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
http://etrepat.com/baum
MIT License
2.24k stars 459 forks source link

Mass-assignment - array_intersect_key(): Argument #1 is not an array #281

Closed diro7 closed 7 years ago

diro7 commented 7 years ago

When I try to add in bulk I get this error

ErrorException in Arr.php line 309:
Array_intersect_key (): Argument # 1 is not an array

The child is an array.

array:5 [▼
  "name" => "Root"
  "children" => array:5 [▼
    0 => array:2 [▶]
    1 => array:2 [▶]
    2 => array:2 [▶]
    3 => array:2 [▶]
    4 => array:2 [▼
      "name" => "<p>Big Data</p>"
      "content" => ""
    ]
  ]
]

Thank you.

diro7 commented 7 years ago

i have a error, The left field was VARCHAR