Hi Luis, I solved the problem.
Before making the summary I must point that Tim was reffering to what I
thoght was Serializable about erroneously, sorry, my fault :D
What I found (I have to start reading docs more deeply :P):
The PHP bible says:
serialize() checks if your class has a function
According what I have read so far, serialize/unserialize $entities with
proxies associations is not advised.
And of course, if you are saving objects in session() vars, it is an
innecesary load to save proxies information.
So, it is adviced to detach proxies from entities (in case where entites
Careful! The entity manager's detach method does not return anything!
Marco Pivetta
@Ocramius http://twitter.com/Ocramius
http://marco-pivetta.com
On 16 May 2011 08:55, oscar balladares liebegr...@gmail.com wrote:
According what I have read so far, serialize/unserialize $entities with
Nobody can help ?
On May 13, 5:24 pm, chafik chafik.hn...@gmail.com wrote:
Hello,
I'm creating my forms for my application based on my entities.
I'm wondering if it is possible to stop validation when one rule is
not verified.
For example, this is an attribute of one of my entities :
Thank you Christophe. I'm going to start a new thread with the
appropriate title for search purposes as I'm having some serious
issues with this migration. I've made some progress and had some set
backs in case anyone is wondering.
--
If you want to report a vulnerability issue on symfony,
First off, I'm a Symfony noob. I inherited a project from a Linux
installation of SF. I was given the source code and told to make
edits. I'm having great difficulty getting this code to work. I've
set up a WAMP server and got Symfony running (PEAR,Paths,httpd, etc).
I've imported the DB
Hi,
2011/5/16 Glenn Z gl...@sweetwoodguitars.com:
First off, I'm a Symfony noob.
Just read this
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/
everything is documented - step by step.
Here is another useful documentation
http://www.symfony-project.org/doc/1_4/
I inherited a project
Hi all,
I will get to the point very fast... :P. In the past I did had few shared
hosting accounts and I wasn't happy with the configuration so far, so I
ended up with a VPS server which I installed and configured myself. Anyway I
ended with the following warnings when I am trying to access the
Everyone, thanks for your help.
I'm going to use an EventListener.
you cannot do a circular reference.
so if your service has a dependency to the entity manager, a solution is
to inject the container so that you can retrieve the entity manager when
you need to use it instead of doing it when
Me too :)
On May 16, 12:43 am, oscar balladares liebegr...@gmail.com wrote:
If you use JQuery it should be easy.
There is a way to hide/show div/ elements.
You can render the form in two divs
form action=some route method='post'
div id=form
render field 1
render
Hi all,
I am currently having an issue attempting to run a ./symfony
propel:build-model on a symfony 1.1 application. I keep an error message
about running out of memory as follows:
PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 71 bytes) in
What it sounds like you need is a post validator...
http://www.symfony-project.org/forms/1_4/en/02-Form-Validation#chapter_02_global_validators
On Mon, May 16, 2011 at 1:58 PM, codecowboy l...@lukem.co.uk wrote:
Hi,
I can't find an example of how to add a required checkbox to a form
which is
Won't simply setting required=true do the trick?
On May 16, 1:58 pm, codecowboy l...@lukem.co.uk wrote:
Hi,
I can't find an example of how to add a required checkbox to a form
which is unrelated to my model e.g a checkbox to accept the terms and
and conditions for registration.
I think
This might help:
http://symfony.com/doc/current/book/validation.html#constraint-configuration
--
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
Are you able to have a field marked as NotBlank() on step two and not
to raise error after step one ?
(claiming that he needs the step two fields?)
oh, I get it, you call the validator on each steps.
I'm interested into a javascriptless method for formwizzards. :-)
On 15 mai, 19:19, dustin10
Hello!
I'm facing a problem with a form.
I'm getting a
500 | Internal Server Error | InvalidArgumentException Widget url does not
exist.
I don't know what else to do...
On my *BasePessoaForm.php * I have this code.
public function setup()
{
$this-setWidgets(array(
...
'url'
Err..
nervermind...
I found out that there where a unset on that field
sorry
Att,
Fernando Grassi de Oliveira
fgra...@gmail.com
On Mon, May 16, 2011 at 11:14, Fernando Grassi de Oliveira
fgra...@gmail.com wrote:
Hello!
I'm facing a problem with a form.
I'm getting a
500 | Internal
Yes, you are right. I hadn't try out the -detach() method :P Sorry. I saw a
tutorial that seemed very convincing :P (it was very late when posted last
email and I didn't try it till now).
My apologies :F
2011/5/16 Marco Pivetta ocram...@gmail.com
Careful! The entity manager's detach method
thank for your reply
i have the sfguardpermission enabled
i have this error when i try to login:
he look for a columns slug in sfguarduser table but there is no columns
00 | Internal Server Error |
Doctrine_Connection_Mysql_ExceptionSQLSTATE[42S22]:
Column not found: 1054 Unknown column 's.slug'
For people interested in the solution.
Actually the $processor-process() doesn't register any parameter. It just
parses the content of $configs, which is the content of
app/config/config.yml. So you have to manually (??) register each parameter
into the container. This can be done thanks to
Hi,
Anyone out there got any examples of using a modal dialog to display,
for example, a login form in Symfony 1.4?
Would I just need to set the path of the modal box to a symfony action
and ensure that the action does not render the entire layout?
What do I need to do regarding validation and
Just use the php function count on the results, it is O(1).
--
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
Having all the symfony 1.x releases mixed in with Symfony 2 posts can
sometimes make it difficult to discern which Symfony people are talking
about in their posts.
Not everyone is explicit on whether they are referring to Symfony1 or
Symfony2.
This is not only a problem for those working on
In Symfony2 you can load field from Doctrine Entity as following:
$builder-add('category', 'entity', array(
'class' = 'Acme\BlogBundle\Entity\Category', // your Entity
class namespace
'property' = 'name', //name of your property that can
show up
));
Hope
Hey Guys,
Sorry to bring the post back to life but the problem returned!
So, I did some other things in the project and wanted to do the login with
an entity.
Although I found out I was using an older version so I was having some
problems following the docs (and I couldn't do the login steps
Le 16/05/2011 19:32, Filipe La Ruina a écrit :
Hey Guys,
Sorry to bring the post back to life but the problem returned!
So, I did some other things in the project and wanted to do the login
with an entity.
Although I found out I was using an older version so I was having some
problems
Sergio, don't worry about the two queries. Even on MySQL it is OFTEN true
that using SQL_CALC_FOUND_ROWS is slower than using two different queries.
Don't really know why, but I suppose it has to do with internal optimization
issues...
Marco Pivetta
@Ocramius http://twitter.com/Ocramius
You tested this solution with the CollectionType?
--
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
Good evening,
I have an issue with sfThumbnailPlugin. Indeed, all the documentation
that is included in the Readme file, fit for the 1.2 version of
Symfony
and no more (methods like getFileName() and getFilePath() doesn’t seem
to be recognized by my version of Symfony). What about the
I mean, is there some thing like this?
if ($this-get('security.context')-isGranted('VIEW', new
ClassIdentity('EntityBundle\Entity'))) {
...
}
Or it is only possible by using roles?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
Hi folks,
I work with PHP for some years, but I'm new to Symfony. I'm working
with some legacy code, it's an old Symfony 1.0 based project and I'll
have to upgrade it to 1.4 version.
I've read some texts that say that I need to upgrade to each old
version until I reach 1.4. While trying to
Hi,
our company would like to switch to Symfony2 as its major development
platform, so we are currently evaluating it against our needs. As far
as I can seen the following needs regarding routing might be
problematic with Symfony2:
1. Routing of nested slugs
Imagine we have a entity called
Hey Guys,
Getting a 404 on http://svn.symfony-project.com/plugins/sfShoppingCartPlugin
I know its deprecated but did it get deleted from repo for some
reason?
Thanks
Justin
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You
please i need help with this
Catchable fatal error: Argument 4 passed to Symfony\Component\Security
\Core\Authentication\Token\UsernamePasswordToken::__construct() must
be an array, object given, called in /var/www/citasmedicas/vendor/
I implemented a two-step form using validation groups. Basically I created a
form type and then i have a method on that class like configForStepTwo(). In
this method i make everything for step one hidden inputs. This way none of
the info is saved until the second step is completed. I will post
Hello everybody!
I'm trying to configure assetic to work with compass and scss.
I don't understand if I have (in some way) to manually specify to the
compass filter to run sass with --scss flag, or if assetic is supposed
to manage the file extension.
The CompassFilter from Assetic inherit from
Dobervich? the one from http://www.dobervich.com/ ???
Hey dude, I'm a big fan of your blog, hope you can update it!!
I'll check your implementation to do things as they should.
Regards! (Sorry for spaming :(
2011/5/14 dustin10 ddoberv...@gmail.com
I don't think it can be done using
Hey, Thanks! Totally forgot about that requirement (it was not in the
version I had, like Daniel mentioned) I really got confused with the other
version I messed with.
Thanks again!
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
On Mon, May 16, 2011 at 1:15 PM, keymaster ad...@optionosophy.com wrote:
Having all the symfony 1.x releases mixed in with Symfony 2 posts can
sometimes make it difficult to discern which Symfony people are talking
about in their posts.
Not everyone is explicit on whether they are referring
Hi JP.
if read earlier post, I posted it in this discussion. OK, i show you
in sf1.4:
You can do it following 2 ways:
1. $this-widgetSchema['your_field'] = new sfWidgetFormDoctrineChoice(
array(
'model' = 'Model
someone has to write about this case more clearly to explain to all
This example is perfect, although one more could be added
Even though is not sf2 related specifically I think that it has to be
explained since we are going to run into these kind of problems
Thanks
On Mon, May 16, 2011 at
Another issue that I run into is:
Let's say we have object A, and object A has refernce to Object B, both are
entities instances, and reference of B is actually a proxy.
This is the case when retrieving A with the entity manager. The reference of
Object B is a doctrine proxy of Object B actually.
yes and if you find a resource or more styled example or post that can
clarify this further would be great
On Mon, May 16, 2011 at 9:48 PM, oscar balladares liebegr...@gmail.com wrote:
Another issue that I run into is:
Let's say we have object A, and object A has refernce to Object B, both are
Legacy sounds a little bit like les misérables hahaha. I'm pretty sure
that S1 people will feel like the forgotten ones with this title.
But the point is that we think that this list is becoming inmantainable.
Symfony 1 y so different to Symfony 2, that this can be compared to having a
CakePHP
Howdy,
I have an Extension that, upon parsing a config, does the following:
$serviceDef = $container-getDefinition('my.service');
$adapterRef = new Definition('%my.adapter.class%');
$adapterRef-addMethodCall('setDescription', 'Symfony Rocks!');
45 matches
Mail list logo