[symfony-users] [SF2] Problems with WebTestCase and Security-Component

2011-05-11 Thread Skaldrom Y. Sarg
I am using WebTestCase (Beta1) to do some functional tests. It seems that the class mixes up some cookie-stuff, because the site works in dev and prod environments but fails in several unit-tests. I would be very glad if someone could help me or point me to the docs needed. The following piece of

[symfony-users] [sf2][capifony] - deploy to production server

2011-05-11 Thread jdewit
I tried playing around with capifony today and after a few frustrating hours I still can't get it to work. I am using method a) deployment -> scm -> production cap deploy:setup works but when running cap deploy for an empty Symfony2 project, I get the following errors. Thanks for any help!

[symfony-users] Re: Symfony 2 - Form login with different providers

2011-05-11 Thread chafik
Thank you Christophe :) I finally updated my routes, firewalls and my login form. So that with a unique SecurityController, a unique loginAction, a unique login.html.twig I can manage the connection in function of the parameter passed in the route (panel or admin). On May 11, 12:33 pm, Christophe

[symfony-users] Re: One-to-one association in form

2011-05-11 Thread JP
I have the same question, did you find an awnser? I'm using sf 1.4 regards, JP -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post

[symfony-users] Re: [Symfony2 and Doctrine2] Unable to Persist Entities

2011-05-11 Thread Carl
And for completeness, here's the quick and dirty PDO version of the above (minus the insert for my Subscription object): public function saveSubscription(SubscriptionInterface $subscription, SignupInterface $signup, $flush = true) { $handle = \fopen('/home/lwprods/new/errors', 'w

Re: [symfony-users] Re: Use two different database into the same controller

2011-05-11 Thread sergio
Thanks. Then it means that you can change the DB to work on dinamicaly depending on for instance the value of a variable...?? Enviado desde mi dispositivo BlackBerry® -Original Message- From: badllama77 Sender: symfony-users@googlegroups.com Date: Wed, 11 May 2011 13:17:51 To: Reply-T

[symfony-users] Re: [Symfony2 and Doctrine2] Unable to Persist Entities

2011-05-11 Thread Carl
Interestingly, the following code works without trouble: public function saveSubscription(SubscriptionInterface $subscription, SignupInterface $signup, $flush = true) { $handle = \fopen('/home/lwprods/new/errors', 'w'); //$this->em->persist($subscription); //$this-

Re: [symfony-users] Only use anonymous role if user is not logged in?

2011-05-11 Thread Christophe COEVOET
Le 11/05/2011 21:30, thesaint a écrit : I have one page that is accessible by logged in and non-logged in users and checks for certain roles in the controller code. In order that $this->get('security.context') returns something I have the following lines in my security.yml mypage: pattern:

[symfony-users] [Assetic] Error: Unable to launch a new process

2011-05-11 Thread Daniel Gomes
Hello, When i run my project on mac, it doesn't throw any exception. But when i passed it to my windows 7 computer, after install ruby and compass, it gives that error below: [exception] 500 | Internal Server Error | RuntimeException [message] Unable to launch a new process. [1] RuntimeE

Re: [symfony-users] Re: Use two different database into the same controller

2011-05-11 Thread badllama77
Sorry my bad I missed the version you were using. $em = $this->get('doctrine.orm.ppuerp_entity_manager'); -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "sym

[symfony-users] [Symfony2 and Doctrine2] Unable to Persist Entities

2011-05-11 Thread Carl
Hello, I'm not sure if I should be posting this here or on the Doctrine mailing list since it's related to both Symfony2 and Doctrine 2. Anyway, I'm having a *really* weird issue when persisting data to my database. Data gets posted to a specific URL after a user completes a transaction and I

[symfony-users] Only use anonymous role if user is not logged in?

2011-05-11 Thread thesaint
I have one page that is accessible by logged in and non-logged in users and checks for certain roles in the controller code. In order that $this->get('security.context') returns something I have the following lines in my security.yml mypage: pattern: ^/shared_page anonymous: true When loo

Re: [symfony-users] Re: Use two different database into the same controller

2011-05-11 Thread Christophe COEVOET
Le 11/05/2011 20:20, sergio a écrit : Yes, I tried that you say, but symfony 2.0.0PR10 says me that the service doctrine does not exist This service is new and will be in the beta2 release. For older release, you need to get the entity manager directly using its id : /doctrine.orm.custom_entity

[symfony-users] Use two different database into the same controller

2011-05-11 Thread SergioAlbatronic
Hi, everybody. I need to use two different database in my app. I have configurated app/config.yml like this: doctrine: dbal: default_connection: ppuemp connections: ppuerp: driver: pdo_mysql host: localhost dbna

Re: [symfony-users] Re: Use two different database into the same controller

2011-05-11 Thread sergio
Yes, I tried that you say, but symfony 2.0.0PR10 says me that the service doctrine does not exist Enviado desde mi dispositivo BlackBerry® -Original Message- From: badllama77 Sender: symfony-users@googlegroups.com Date: Wed, 11 May 2011 11:10:21 To: Reply-To: symfony-users@googlegroups

[symfony-users] Re: Use two different database into the same controller

2011-05-11 Thread badllama77
you can get an entity manager for a different defined entity by name $em = $this->get('doctrine')->getEntityManager('ppuerp'); see. http://symfony.com/doc/current/book/doctrine/orm.html#multiple-entity-managers -- If you want to report a vulnerability issue on symfony, please send it to secu

Re: [symfony-users] How do I check roles in the controller?

2011-05-11 Thread Carl
Speaking of roles, is there a way to update the list of roles a user has in the token after a user has logged in? For example, lets say a user is given a ROLE_MEMBER role after subscribing to a portion of a website. The user is updated and persisted in a database. However, the list of roles tha

Re: [symfony-users] Re: Testing your Doctrine Entities and Repositories

2011-05-11 Thread oscar balladares
Thanks! [?] 2011/5/11 Gediminas Morkevicius > As what relates to repository, you can make usually functional tests, > unless you have completely different logic in it, and instead of getting > entities your repository modifies them for instance.. Testing entities, you > can make a mock of it, an

Re: [symfony-users] How do I check roles in the controller?

2011-05-11 Thread Christophe COEVOET
Le 11/05/2011 18:49, thesaint a écrit : According to the book, i can call "is_granted" in the template. But how do I check in a controller if a user has a specific role? I'd like to redirect to different pages depending on which role a user has. $this->container->get('security.context')->isGran

[symfony-users] How do I check roles in the controller?

2011-05-11 Thread thesaint
According to the book, i can call "is_granted" in the template. But how do I check in a controller if a user has a specific role? I'd like to redirect to different pages depending on which role a user has. -- If you want to report a vulnerability issue on symfony, please send it to security at s

Re: [symfony-users] [Symfony2] Documentation - Community Contributed Suggestions

2011-05-11 Thread Donald Tyler
Yup, I am aware of that. I was speaking more to the differences between a mailing list vs github. On Wed, May 11, 2011 at 11:20 AM, Christophe COEVOET wrote: > Le 11/05/2011 18:13, Donald Tyler a écrit : > > I agree with stof also. That would also open the opportunity for >> individuals to prov

[symfony-users] Storing data on "anonymous" user

2011-05-11 Thread Problematic
I'm currently working on developing an app that will not only accept user registrations, but will allow visitors to go through almost the entire flow of the site without creating an account or logging in. Our design ideas look something like this (suggestions/improvements welcome): * When a user l

[symfony-users] Re: Storing data on "anonymous" user

2011-05-11 Thread Problematic
Forgot to mention, this is being built in Symfony2 On May 11, 9:56 am, Problematic wrote: > I'm currently working on developing an app that will not only accept > user registrations, but will allow visitors to go through almost the > entire flow of the site without creating an account or logging

Re: [symfony-users] Symfony2 custom form fields

2011-05-11 Thread Christophe COEVOET
Le 11/05/2011 10:09, jmihel a écrit : Hi! I'm trying to create a custom form field (an autocomplete etc.). In the book it says that this is explained in "/cookbook/forms/ create_custom_fields" but I am unable to find this. Could anybody help find this chapter or explain how custom form fields c

Re: [symfony-users] [Symfony2] Documentation - Community Contributed Suggestions

2011-05-11 Thread Christophe COEVOET
Le 11/05/2011 18:13, Donald Tyler a écrit : I agree with stof also. That would also open the opportunity for individuals to provide patches along with their suggestions. Providing patches is still possible. It is always possible to send pull requests on github, even when the issue tracker is dis

[symfony-users] One-to-one association in form

2011-05-11 Thread user123
Hi guys, I want to know how to create drop down list using one-to-one association in form? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group

[symfony-users] Re: How to overload the method which load the values in an edit form ?

2011-05-11 Thread Vincent B.
Thank you very much ! On 11 mai, 08:16, Gábor Fási wrote: > Overwrite the updateDefaultsFromObject > function.http://trac.symfony-project.org/browser/branches/1.4/lib/plugins/sfDo... > > On Tue, May 10, 2011 at 13:46, Vincent B. wrote: > > Hi, > > > I work with Symfony 1.4. > > > I try to find

[symfony-users] Symfony2 custom form fields

2011-05-11 Thread jmihel
Hi! I'm trying to create a custom form field (an autocomplete etc.). In the book it says that this is explained in "/cookbook/forms/ create_custom_fields" but I am unable to find this. Could anybody help find this chapter or explain how custom form fields can be created. Thanks Josip -- If you

[symfony-users] Pratical Symfony day 5 - Class sfPropelRoute does not exist

2011-05-11 Thread Giuseppe
Hello everyone, are at the point where the tutorial tells me to open the the url http://localhost:/frontend_dev.php/job/sensio-labs/paris-france/1/web-developer and here i have my error: stack trace at () in SF_SYMFONY_LIB_DIR\config\sfRoutingConfigHandler.class.php line 37 ... $data = ar

Re: [symfony-users] [Symfony2] Documentation - Community Contributed Suggestions

2011-05-11 Thread Fabien Potencier
On 5/11/11 6:06 PM, Christophe COEVOET wrote: Le 11/05/2011 17:45, keymaster a écrit : The documentation is slowly improving, thanks very much to those involved. Symfony2 is a huge framework, and the documentation undertaking is understandably difficult. The documentation team have really done

Re: [symfony-users] [Symfony2] Documentation - Community Contributed Suggestions

2011-05-11 Thread Donald Tyler
I agree with stof also. That would also open the opportunity for individuals to provide patches along with their suggestions. On Wed, May 11, 2011 at 11:07 AM, Luis Cordova wrote: > fully agreeing with Stof > > On Wed, May 11, 2011 at 11:06 AM, Christophe COEVOET > wrote: > > Le 11/05/2011 17:4

Re: [symfony-users] [Symfony2] Documentation - Community Contributed Suggestions

2011-05-11 Thread Luis Cordova
fully agreeing with Stof On Wed, May 11, 2011 at 11:06 AM, Christophe COEVOET wrote: > Le 11/05/2011 17:45, keymaster a écrit : >> >> The documentation is slowly improving, thanks very much to those involved. >> >> Symfony2 is a huge framework, and the documentation undertaking is >> understandab

Re: [symfony-users] [Symfony2] Documentation - Community Contributed Suggestions

2011-05-11 Thread Christophe COEVOET
Le 11/05/2011 17:45, keymaster a écrit : The documentation is slowly improving, thanks very much to those involved. Symfony2 is a huge framework, and the documentation undertaking is understandably difficult. The documentation team have really done a great job so far for software which has on

[symfony-users] [Symfony2] Documentation - Community Contributed Suggestions

2011-05-11 Thread keymaster
The documentation is slowly improving, thanks very much to those involved. Symfony2 is a huge framework, and the documentation undertaking is understandably difficult. The documentation team have really done a great job so far for software which has only just reached beta1, and I think everyon

Re: [symfony-users] Re: How disable validation inherit parent?

2011-05-11 Thread Daniel Almeida da Silveira
Yes I dont need validation Cidade. It is only object associated with Parceiro. When I create new Cidade, I use another validation group. Validation.xml: http://symfony.com/schema/dic/constraint-mapping"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://

Re: [symfony-users] Re: How disable validation inherit parent?

2011-05-11 Thread Donald Tyler
Ah, that makes sense. So the validation framework was not taking into account that the Cidade was already persisted, and was assuming it was a duplicate. So now you're going to use validation groups to exclude the Cidade from the validation? On Wed, May 11, 2011 at 7:10 AM, elcabong wrote: > Th

[symfony-users] How change error message in repeated form???

2011-05-11 Thread elcabong
Symfony2 Beta1 When I get error it's returned "The value is invalid". I woukd like to change message to "Password don't match!" How change error message in repeated form? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

[symfony-users] Re: How disable validation inherit parent?

2011-05-11 Thread elcabong
The solution is validation groups. Tanks On 10 maio, 08:53, elcabong wrote: > Controller: > > namespace MCP\AdminBundle\Controller; > > use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; > use MCP\AdminBundle\Form\ParceiroType; > use Symfony\Component\HttpFoundation\RedirectRespo

AW: Re : AW: [symfony-users] Re: Not a valid entity or mapped super class

2011-05-11 Thread Juergen Kober
I¹ve stopped using the command line to create entities some time ago. The most effective way for me to work with entities and annotations is to write the entity with it¹s getters and setters by hand and use the command line only to update the database. Far as I can tell, you should have a Prospect

Re : AW: [symfony-users] Re: Not a valid entity or mapped super class

2011-05-11 Thread Louardi Abdeltif
Those files are generated by command line De : Juergen Kober À : symfony-users@googlegroups.com Envoyé le : Mercredi 11 Mai 2011 11h19 Objet : AW: [symfony-users] Re: Not a valid entity or mapped super class I guess, your directory structure is   /ZRCoreBundl

Re: [symfony-users] Symfony 2 - Form login with different providers

2011-05-11 Thread Christophe COEVOET
Le 11/05/2011 10:23, chafik a écrit : Hi, I am developping a backend application based on Symfony 2 beta 1. Two types of users can access my backend (Partner and Admin). Both of them can connect to the backend with the form login, here is my security.yml : public: pattern: ^/public/.*

Re: [symfony-users] Re: has a problem adding 3rd party libraries under vendor/

2011-05-11 Thread Christophe COEVOET
Le 11/05/2011 11:55, thesaint a écrit : Have you tried renaming superfeedr.php to Superfeedr.php ? The case of class name and file name must match for the autoload to work. On 26 Apr., 11:36, jarod wrote: sf2 PR12 I download a superfeedr.php file which has the class Superfeedr {} 1.then I c

Re: AW: [symfony-users] Re: Not a valid entity or mapped super class

2011-05-11 Thread Christophe COEVOET
Le 11/05/2011 12:19, Juergen Kober a écrit : I guess, your directory structure is /ZRCoreBundle/Entity/Prospect.php and Prospect.php has the code with the annotations you are showing in Prospect.orm.php? I'm not exactly understanding why you have a Prospect.php and a Prospect.orm.php - has

AW: [symfony-users] Re: Not a valid entity or mapped super class

2011-05-11 Thread Juergen Kober
I guess, your directory structure is /ZRCoreBundle/Entity/Prospect.php and Prospect.php has the code with the annotations you are showing in Prospect.orm.php? I'm not exactly understanding why you have a Prospect.php and a Prospect.orm.php - has there been a change in the documentation for th

Re : [symfony-users] Re: Not a valid entity or mapped super class

2011-05-11 Thread Louardi Abdeltif
What the role of this generated classes XXX.orm.php De : lidaa À : Symfony users Envoyé le : Mercredi 11 Mai 2011 10h39 Objet : [symfony-users] Re: Not a valid entity or mapped super class Prospect.php http://pastebin.com/Xk5dyCH9 Prospect.orm.php http://past

[symfony-users] Re: SF2: Form Widgets are HTML-escaped in TWIG

2011-05-11 Thread ridcully
I have now the same problem too, after updating twig from git master. On 3 Mai, 09:05, "Skaldrom Y. Sarg" wrote: > This is fixed now, Thnx a lot... -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because yo

[symfony-users] Re: has a problem adding 3rd party libraries under vendor/

2011-05-11 Thread thesaint
Have you tried renaming superfeedr.php to Superfeedr.php ? The case of class name and file name must match for the autoload to work. On 26 Apr., 11:36, jarod wrote: > sf2 PR12 > I download  a superfeedr.php file which has  the > class Superfeedr > {} > > 1.then I copy the superfeedr.php to /vendo

Re: [symfony-users] Re: SF 2 - Referrer object similar to Request object?

2011-05-11 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, hm, yes i think this is what i thought. we did it that way but we have extremly few routes in our project. on the view layer, its easy as we just wrote a small snipped for that element that is included in the base layout. maybe somebody else know

[symfony-users] Re: Not a valid entity or mapped super class

2011-05-11 Thread lidaa
Prospect.php http://pastebin.com/Xk5dyCH9 Prospect.orm.php http://pastebin.com/3hSRJv5v On 11 mai, 10:36, chafik wrote: > Give us the code of your Entity class, it is probably a problem of > annotation or config in your XML ou YML file... > > On May 11, 11:31 am, lidaa wrote: > > > I did that,

Re: [symfony-users] Re: notice: serialize() __sleep

2011-05-11 Thread Luis Cordova
right but this was not what was happening. I had a chain of entities, and they all were entities, regular POPOs. And I had to implement serialize method for one of them for this thing to work. On Wed, May 11, 2011 at 2:19 AM, Marco Pivetta wrote: > The ORM uses proxy classes internally. Thus, whi

Re : [symfony-users] Re: Not a valid entity or mapped super class

2011-05-11 Thread Louardi Abdeltif
its done here Prospect.php http://pastebin.com/Xk5dyCH9 Prospect.orm.php http://pastebin.com/3hSRJv5v De : chafik À : Symfony users Envoyé le : Mercredi 11 Mai 2011 10h36 Objet : [symfony-users] Re: Not a valid entity or mapped super class Give us the code of

[symfony-users] Re: Not a valid entity or mapped super class

2011-05-11 Thread chafik
Give us the code of your Entity class, it is probably a problem of annotation or config in your XML ou YML file... On May 11, 11:31 am, lidaa wrote: > I did that, and always I have the same problem > >     orm: >         auto_generate_proxy_classes: %kernel.debug% >         mappings: >          

[symfony-users] Re: Adding classes to autoload

2011-05-11 Thread thesaint
On 10 Mai, 07:53, Inori wrote: > What I have: a class named someClass in a file named someFile.php in a > folder named someFolder. > I placed that folder in /vendor (so path to someFile.php is now / > vendor/someFolder/someFile.php ). The file doesn't  use namespaces. > > What I want: add that cla

[symfony-users] Re: Not a valid entity or mapped super class

2011-05-11 Thread lidaa
I did that, and always I have the same problem orm: auto_generate_proxy_classes: %kernel.debug% mappings: ZRCoreBundle: ~ On 11 mai, 10:17, Juergen Kober wrote: > Do you have the "mappings" in your confg.yml? > >     orm: >         auto_generate_proxy_classes: %k

[symfony-users] [symfony2] which is the correct way to deliver binary content?

2011-05-11 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, i have binary content that i have to deliver to the client. what is the right way to do it? i found two solutions, but neither seems really good. //in my controller, i get a binary stream (its stored in the database) $picture = $this->method_t

AW: [symfony-users] Not a valid entity or mapped super class

2011-05-11 Thread Juergen Kober
Do you have the "mappings" in your confg.yml? orm: auto_generate_proxy_classes: %kernel.debug% mappings: TestBundle: ~ Am 11.05.2011 10:53 Uhr schrieb "lidaa" unter : > > Hi all; > > I have the following error when I try to insert a new record. > > error: >

[symfony-users] Re: Not a valid entity or mapped super class

2011-05-11 Thread lidaa
Notice : $user => $prospect In my controller // Entities : use ZR\CoreBundle\Entity\Prospect; ... ... $prospect = new Prospect(); $prospect->setCompany(''); $em = $this->get('doctrine')->getEntityManager(); $em->persist($prospect); $em->flush(); Prospect.ph

Re: [symfony-users] Not a valid entity or mapped super class

2011-05-11 Thread Marco Pivetta
Could you expose the App\TestBundle\Entity\User class with annotations or related mapping? Marco Pivetta @Ocramius http://marco-pivetta.com On 11 May 2011 10:53, lidaa wrote: > > Hi all; > > I have the following error when I try to insert a new record. > > error:

[symfony-users] Re: Not a valid entity or mapped super class

2011-05-11 Thread chafik
Show us the code of the entity and the way you declare $user :) On May 11, 10:53 am, lidaa wrote: > Hi all; > > I have the following error when I try to insert a new record. > > error: >      Class App\TestBundle\Entity\User is not a valid entity or mapped > super class. > > code: > >      orm: >

[symfony-users] Not a valid entity or mapped super class

2011-05-11 Thread lidaa
Hi all; I have the following error when I try to insert a new record. error: Class App\TestBundle\Entity\User is not a valid entity or mapped super class. code: orm: auto_generate_proxy_classes: %kernel.debug% auto_mapping: true code: $em = $ this->get('

[symfony-users] Re: [FORM] Multitple Entity type

2011-05-11 Thread chafik
What do you mean by "it's not working." ? Doing nothing ? Exception ? :) Be more precise by pasting the code of your entity for example. On May 11, 10:06 am, Vincent Lechemin wrote: > yes I did :( > > -- > Vincent -- If you want to report a vulnerability issue on symfony, please send it to sec

[symfony-users] Symfony 2 - Form login with different providers

2011-05-11 Thread chafik
Hi, I am developping a backend application based on Symfony 2 beta 1. Two types of users can access my backend (Partner and Admin). Both of them can connect to the backend with the form login, here is my security.yml : public: pattern: ^/public/.* security: false panel:

Re: [symfony-users] Doctrine Extensions in Symfony2 Beta1

2011-05-11 Thread Gediminas Morkevicius
stof, maybe you can make tags for symfony related versions On Tue, May 10, 2011 at 11:40 PM, Juergen Kober wrote: > Hello Christophe, > thanks again for your help! > The commit you mentioned works as expected. > Best regards > Jürgen > > > Am 09.05.2011 20:36 Uhr schrieb "Christophe COEVOET" unte

Re: [symfony-users] [FORM] Multitple Entity type

2011-05-11 Thread Vincent Lechemin
yes I did :( -- Vincent -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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

AW: [symfony-users] Doctrine Extensions in Symfony2 Beta1

2011-05-11 Thread Juergen Kober
Hello Christophe, thanks again for your help! The commit you mentioned works as expected. Best regards Jürgen Am 09.05.2011 20:36 Uhr schrieb "Christophe COEVOET" unter : > Le 09/05/2011 20:15, Jürgen Kober a écrit : >> Hi, >> >> i've been using doctrine extensions in a project i've started wit

Re: [symfony-users] [FORM] Multitple Entity type

2011-05-11 Thread Marco Pivetta
Did you define a ManyToOne owning side? Marco Pivetta @Ocramius http://marco-pivetta.com On 10 May 2011 21:35, Vincent Lechemin wrote: > Hi, > > I'm trying to use the entity type with a OneToMany relationship, but > it's not working. > Is there anything special to

Re: [symfony-users] ORM tutorials

2011-05-11 Thread Mark Badolato
Foo.php wrote: > Hi guys, I need a ORM tutorial. I'm coded some ORM. But when I run > app/ > console doctrine:schema:create command relation between tables does > not generated automatically / doesn't generate primary and  foriegn > key columns/. Please help me I need a very simple /one to one >

Re: [symfony-users] ManyToMany self related

2011-05-11 Thread Marco Pivetta
Not 100% sure about that, but you should try looking at the docs for custom hydrators. Just looking at the diffs of the custom hydrator bundle I found some useful stuff: https://github.com/symfony/symfony/pull/471/files Not sure if the hydrator acts on a single row or on the entire resultset thou

Re: [symfony-users] ORM tutorials

2011-05-11 Thread Marco Pivetta
Well, did you try with http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/getting-started-xml-edition.html? Marco Pivetta @Ocramius http://marco-pivetta.com On 10 May 2011 09:00, user123 wrote: > Hi guys, I need a ORM tutorial. I'm coded some ORM. But when

Re: [symfony-users] Re: notice: serialize() __sleep

2011-05-11 Thread Marco Pivetta
The ORM uses proxy classes internally. Thus, while working with the proxies (when you load stuff from DB you usually receive a proxy from the Object Hydrator), you don't have access to private vars defined in your entities. That's why serialization of a proxy fails (and you should not serialize pro