On 25.02.2010 21:56, Jonathan Wage wrote:
>> 1) $this->getDatabaseConnection():
>> Will it allow us to use two ORMs at same time? Would be nice if we
>> could set a parameter with the connection name, and each connection
>> has it's own orm. (Personal note: I don't like using more than one
>> ORM, it's just to have the option)
>>
>>
> Yes, it is already possible. You can use multiple connections and multiple
> entity managers.

That's multiple connection within Doctrine, if what you want is really
two different ORMs, you can use another bundle for the other orm, and
declare another method in your Controller like :
public function getORM2() {
    return $this->container->getORM2Service();
}

Basically look into the base Controller class int he WebBundle to see
what it does, you could override getDatabaseConnection to provide that
extra arg, but it's not something the framework should do imo.

>> 2) $request->getRequestParameter('page'):
>> It's strange cause I'm using $this->getRequest()-
>> getRequestParameter('page') and it is related to the POST variable,
>> not for REQUEST one. Wouldn't it be better to rename it? Something
>> like FORM? (Personal note, I usually use only getParameter(), but
>> readin the docs I have this doubt. Asp.MVC uses FORM for POST)

I'd rather have getPostParam(), getGetParam() and getParam() than those
abstracted names as well, because for one they're awfully long, and
second they aren't too intuitive, although they probably follow more
correct naming standards.

Cheers,
Jordi

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to