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

  • Home
  • SEARCH
  • 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 8144215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:19:05+00:00 2026-06-06T13:19:05+00:00

The Propel ORM documentation mentions a neat import/export feature using functions like fromArray and

  • 0

The Propel ORM documentation mentions a neat import/export feature using functions like fromArray and fromJSON, that should allow something like this:

$foo = new Widget();
$foo->fromArray($_POST);
$foo->save(); /* Aaand you're done! */

…but the documentation doens’t mention if using fromArray this way is supposed to be safe, i.e. if fromArray can handle untrusted input. My guess would be that it’s all right – the default setters are injection-proof, and the whole deal is based on PDO – but I’d like to be sure.

  • 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-06-06T13:19:06+00:00Added an answer on June 6, 2026 at 1:19 pm

    Propel not only uses PDO for the queries, it also utilizes Prepared Statements via PDO, which are pretty good when it comes to mitigating SQL Injection attacks (and performance enhancing).

    Note that just using PDO does NOT guarantee any protection against SQL Injection, always use Prepared Statements.

    So as an answer to your question, yes, Propel fully utilizes PDO’s abilities to protect from SQL Injection.

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

Sidebar

Related Questions

What do you think, should I use ORM like Propel or Doctrine? For a
I'm using propel master-dev with symfony 2.1. Is possible to write something like that
I am using Propel, a PHP ORM. I really like it. I love to
I can't seem to find any documentation on Symfony2 forms when using Propel ORM.
I am writing a query using the Propel ORM The query is of the
I am using Symfony 1.2.9 (with Propel ORM) on a website I am building.
I am using Symfony 1.2.9 (with Propel ORM), to build a website. I have
I am using SF 1.2.9 (with Propel ORM), to build a website. I have
Can/should One use any ORM Solution is a Complex Situation like this ? can
I am using SF 1.4.8 with Propel ORM for a project. I have an

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.