i'm wondering if there way have "read-only" connection in propel. basically, i'm going need execute written-by-user request, , need sure not break anything.
of course, can wrap request transaction (and no other choice), know if propel has ability.
you can specify connection this:
$conn = propel::getconnection(myclasspeer::database_name, propel::connection_read); then can use connection in query terminators, e.g
$book = bookquery::create() ->filterbytitle('some title') ->find($conn);
Comments
Post a Comment