Sorry, I am confused, to install my db, can I use ORM to create db via my
entities? or I need dbal to install my db?
Please advice.



On Tue, Apr 1, 2014 at 11:01 PM, Nima Sadjadi <[email protected]> wrote:

>
> having success on a solution try does not necessarily mean if that is wise
> and good practice!! I am asking which one sounds more wise and better
> practice to go with? If you were in my place, which one do you use?
>
>
>
> On Tue, Apr 1, 2014 at 10:59 PM, Marco Pivetta <[email protected]> wrote:
>
>> try something first.
>>
>> Marco Pivetta
>>
>> http://twitter.com/Ocramius
>>
>> http://ocramius.github.com/
>>
>>
>> On 1 April 2014 20:28, Nima Sadjadi <[email protected]> wrote:
>>
>>> for installation script I cannot use ORM but I should use dbal. right?
>>> please confirm if I am correct?
>>> At this time I am using dbal to check whether db is installed, if not,
>>> redirect them to /install/ folder and install db using dbal, so in every
>>> request of my pages, it connects to db twice. once via orm, once via dbal,
>>> now for zend/log if I need to use their DB adapter, there are three
>>> connections on every page. Is it still wise? or bad practice? if bad
>>> practice, I am thinking of two solutions:
>>>
>>> 1) Drop dbal completely and use zend/db for both installation and for
>>> zend/log.
>>> 2) Use their Mock option
>>> http://framework.zend.com/manual/2.3/en/modules/zend.log.writers.html#testing-with-the-mock
>>> to get the log as an array then with that array prepare a sql then
>>> insert it with dbal.
>>>
>>> However this is not directly related to doctrine but I appreciate your
>>> opinion what is the best solution?
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "doctrine-user" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/doctrine-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "doctrine-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/doctrine-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to