Issue adding a new row in DB when im using join

Issue adding a new row in DB when im using join

JuanPiJuanPi Posts: 4Questions: 0Answers: 0




i got a warning as you can see where i think i need to send a value for the table im doing join in this case the table rooms at the column desription, even that i set it at false, but when i do the refresh to the page it seems the row its added and the displayed, so i dont know why i got this warning any help will be apreciated it

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    Your preCreate anonymous function is wrong. It only gets passed two arguments (it can't be given an id, since the id won't have been generated by that point!).

    It should be:

    ->on( 'preCreate', function ( $editor, $values ) {
    

    Allan

  • JuanPiJuanPi Posts: 4Questions: 0Answers: 0

    Thanks for your advice Allan, yes that was the problem

This discussion has been closed.