[symfony-users] Re: getId() not working on newly saved object

2009-10-06 Thread Nick Winfield
$this->product->getId() will give you the auto increment ID of the row just
inserted

2009/10/6 Josh 

>
> Hi all:
>
> I'm still pretty fresh to Symfony so bear with my newbie questions and
> confusions.
>
> Here's the deal:
>
> $this->product = new Product; // from BaseProduct::Product
>
> $obj = $this->product->save();
>
> echo $obj->getProductId();  // product.product_id: int(11),
> autoincrement, primary key.
>
> The echo yields nothing though the object is saved to a row in the
> table.
>
> Thoughts?
>
> Thanks.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-23 Thread Nick Winfield
Ghost3D,

If you do not like the new form framework, then I recommend that you stick
with the 1.0 branch of Symfony.

I don't think there's anything wrong with the directory structure used in
Symfony projects.  Once you get used to the layout, it makes sense.

Kind regards,
Nick.

2009/9/23 bghost 

>
> Hi Fabien,
>
> You say that I write nonsense and stupid e-mails? Well, seems that
> you did not understand me. So, I'll be here a little more detailed and
> specific:
>
> First:
>
> No offense Fabien, this is a well-meaning criticism. I know that you
> invested so much effort into Symfony. However,  you are a little
> exaggerated forcing object model and  object-oriented programming
> where it is  necessary - and where it is not (as is the case with WEB
> Forms), in the language which already has a very bad and sloppy
> object model. So you complicate some tasks in the Symfony
> framework that already was simple and good.
>
>
> Second:
>
> Almost 90% of the code that generates the Symfony framework
> developer need to modify or re-write, because the generated
> code "does not follow best practice" (per your words) in programming.
> What is the point and what the benefits of the code generated if 90%
> of the code must be re-written on the completely different way?
>
> Third:
>
> The result of all this is a complex directory structure, many empty
> classes that only contain a skeleton and just inherits one of the base
> classes, and finally the CRUD code that always must be re-written.
> And to get all that, the programmer must learn a bunch of different
> configuration and command line options.
> And when a programmer, after a painstaking setup and configuration
> of various options and parameters, finally gets the generated code,
> he must re-write 90% of the generated code.
>
> WBR,
> Ghost3D
>
>
> On Sep 23, 9:19 am, Fabien Potencier  project.com> wrote:
> > Ok, I think we get the point. No need to be rude. Please, go away, use
> > whatever framework you want, and stop writing nonsense emails.
> >
> > Thanks,
> > Fabien
> >
> > --
> > Fabien Potencier
> > Sensio CEO - symfony lead developer
> > sensiolabs.com | symfony-project.org | fabien.potencier.org
> > Tél: +33 1 40 99 80 80
> >
> > bghost wrote:
> > > As I said at the beginning:
> >
> > > Symfony has become too complicated. Also, Symfony folder structure
> > > has become too complicated. Definitely, the learning of principles on
> > > which Symfony working is painful and unprofitable. If you really want
> > > to
> > > see, which means fast, easy and effective PHP framework, then take a
> > > look on the following link:
> >
> > >http://www.yiiframework.com/
> >
> > > WBR,
> > > Ghost3D
> >
> > > On Sep 21, 3:31 pm, Sid Bachtiar  wrote:
> > >> XD
> >
> > >> On Tue, Sep 22, 2009 at 1:28 AM, dziobacz 
> wrote:
> >
> > >>> I would like to say that Symfony is very, very good and future
> > >>> framework. Thx Symfony I could learn very fast ASP.NET MVC (not
> > >>> ASP.NET but ASP.NET MVC) - these two frameworks have got many
> similar
> > >>> things.
> > >>> While Zend Framework is far, far away Symfony and ASP.NET MVS. In
> Zend
> > >>> you must almost everything creat by yourself !! For example you must
> > >>> modify Bootstrap file and write there strange code to enable
> > >>> layout !!! Symfony is the best !! :)
> > >>> On 21 Wrz, 10:58, CaffeineInc  wrote:
> >  I think symfony is brilliant, If you need a framework which can
> scale
> >  to enterprise level websites with fast prototyping and a flexible
> ORM,
> >  then you don't need anything else. If you think it's complicated,
> then
> >  maybe you're in the wrong place.
> >  If you want to build a small website with everything pre-configured,
> >  I'd probably stick with something like SilverStripe.
> >  P.s slagging off the framework in 2-3 lines is not very constructive
> >  for the users forum.
> >  On Sep 18, 6:09 pm, bghost  wrote:
> > > No, the crux of what I wanted to say is:
> > > Users should not spend more time to learn how some Web Framework
> > > works but they need to learn a programming language. Any framework
> > > should be only an auxiliary tool, not an entire small science.
> > > So, simplicity and speed should be paramount.
> > > WBR,
> > > Ghost3D
> > > On Sep 18, 5:30 pm, Sid Ferreira  wrote:
> > >> The most easy thing to understand is something that doesn't need
> > >> documentation and I believe that THIS is the point that BGhost is
>  talking
> > >> about."I don't want launch a rocket in 30 days, I want my gallery
> ready in
> > >> 12 minutes..."
> > >> On Fri, Sep 18, 2009 at 12:26, Thomas Rabaix <
> thomas.rab...@gmail.com>wrote:
> > >>> Symfony has many components, each of them are :
> > >>>- easy to understand
> > >>>- easy to configure
> > >>>- very well documented
> > >>> Now, the only thing complicated is to know how all these
> components play
> >

[symfony-users] Re: domain prefix handling

2008-07-01 Thread Nick Winfield
The right way to handle it is via a filter. You /could/ set it in the front
controller via some kind of conditional block, but it is better to keep
everything in its correct place.

On Mon, Jun 30, 2008 at 5:14 PM, Jacob Coby <[EMAIL PROTECTED]> wrote:

>
> Hi All,
>
> I've been asked this question a few times now, so I thought I'd ask
> the group for their opinion.
>
> What's the "proper" way to handle a domain prefix?  The goal is to set
> some sort of request variable (or perhaps set the dimension for
> ysfDimensionsPlugin).  e.g., "foo.example.com" would set the
> $dimension='foo'; "bar.example.com" would set $dimension='bar', etc.
> Ideally, it would also have to be usable in a situation where the
> domain prefix isn't changeable- pass in a URL parameter instead (think
> a dev environment on a shared host).
>
> To me, it appears to be a job for either filters or a fixture.  What's
> everyone else's take?
>
> --
> Jacob Coby
> [EMAIL PROTECTED]
>
>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Upgrading to 1.1

2008-07-01 Thread Nick Winfield
I upgraded one of my long-standing 1.0 projects to 1.1 and had to manually
create that project config class.

Take a look at the UPGRADE document and you'll see what is required at the
top of the file.

http://trac.symfony-project.com/browser/branches/1.1/UPGRADE

On Mon, Jun 30, 2008 at 5:32 PM, Nathanael D. Noblet <[EMAIL PROTECTED]>
wrote:

>
> When I upgrade from 1.0 to 1.1 should the task create a
> config/ProjectConfiguration.class.php file for me?
>
> --
> Nathanael d. Noblet
> Gnat Solutions, Inc
> T: 403.875.4613
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---