save, update, delete not effective with FindFirst() - probably due to multi column primary key #15982
              
                Unanswered
              
          
                  
                    
                      Krzysiaczek
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| 
         After coming back to this I can see that   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've got a table with three fields
a,b,cwhereaandbare defined as a primary keyWhen I get a record from that table using FindFirst
I am trying to update the
$ac->c_id = "something else"value but I can't$ac->update(),$ac->save()or$ac->delete()it. All methods returns true so no error messages are available but record remains unchanged in the DB.I've tried to extend the Model definition by pointing out which fields represents the Primary Key but no change in results.
Any ideas how to fix it?
I'm on php 7.4.28 and phalcon 4.1.2
Beta Was this translation helpful? Give feedback.
All reactions