Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4599894
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:36:24+00:00 2026-05-21T23:36:24+00:00

Hiya, could someone tell me how to use those automatic set functions? I have

  • 0

Hiya, could someone tell me how to use those automatic set functions?

I have a column called “deleted”. When a user clicks a link, it goes to a delete action. The delete action previously deleted a row in the db. Now I just want it to set the deleted field value of that row to 1. Symfony has created a function called setDelete(), but I don’t know how to use it. I am trying this:

$consultant = Doctrine_Core::getTable('consultant')->find(array($request->getParameter('id')));
$consultant->setDeleted('1');

I’m not getting any errors, but it’s still not updating the table.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T23:36:24+00:00Added an answer on May 21, 2026 at 11:36 pm

    you will have to execute $consultant->save(); after the set.

    By the way, since symfony 1.4.3 you can call ConsultantTable::getInstance() instead of Doctrine_Core::getTable('consultant') which allows your IDE to autocomplete the methods in the model.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hiya I am working on an FTP client, can someone tell me the difference
Hiya - been pointed at you guys by a friend of mine. I have
I to need create a programmatic equivalent using delphi language... or could someone post
hiya, i have the following code but when i try and create a new
hiya i have a massive job trying to sort thousands of records all is
I have this markup, <a href=http://www.example.com>Hiya<span class=delete>Delete</span></a> And my js, $('.delete').click(function() { window.location =
Hiya! I'm having problems with z-index in IE7. I have a table where the
Hiya, my code currently has three functions each producing a massive array of random
Hiya, I'm sort a newbie when it comes to hibernate so I'm going to
Hiya I am very new to C#, infact this is basically my first task

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.