[FLOW3-general] [Solved] Adding new field into table

Rayuth You rayuth at typo3cambodia.org
Tue Nov 29 03:50:48 CET 2011


Thank you so much for your so helpful answer :)

On 11/28/2011 04:49 PM, "Christian Müller (Kitsunet)" wrote:
> On 28/11/11 10:32, Rayuth You wrote:
>> Hi Christian
>>
>> What i got from your answer is:
>> I need to write new field and new function setter and getter in
>> \Domain\Model\CoffeeBean.php, and run
>> ./flow3 doctrine:migrationgenerate
>> ./flow3 doctrine:migrate
>>
>> Automatically, it will write into my database. Am I right? or what I get
>> wrong?
>>
>
> Hi Rayuth,
>
> right, but depending if you ever ran doctrine:migrationgenerate, I would
> would advice to run it once in the beginning with your current code,
> just so you have a base migration. Then do the steps above. And yes, the
> migration scripts contain all needed database commands to bring your
> database to the point where your code is and with doctrine:migrate they
> are executed.
>
> Cheers,
> Christian


-- 
Khmer TYPO3 User Group
Spirit of sharing

Rayuth You
Web Developer

M: +855 11 262 078
E: rayuth at typo3cambodia.org


More information about the FLOW3-general mailing list