My app has a 'Photo' field to store URL. It uses
sfWidgetFormInputFileEditable for the widget schema. To delete the old image
when a new image is uploaded, I use unlink before setting the value in the
over-ridden setter and it works!!!
if (file_exists($this-_get('photo')))
The isValid() method is a validation check on user input after a user
has submitted a form based on the validators you create in the forms
object. Its not used to see if the form structure itself is valid.
On Mon, Apr 19, 2010 at 4:37 PM, kim thechosendra...@gmail.com wrote:
hello,
To see if a
Its exactly the right approach so don't worry about that ;)
On Mon, Apr 19, 2010 at 4:46 PM, Tofuwarrior psbur...@googlemail.com wrote:
Thanks all, I knew about changing the template but not about the
render text. I'm just off to try these things out now.
Much appreciated.
As a general
Hi!
I'm trying to get sfDoctrineActAsTaggablePlugin working with symfony
1.4.4.
First the plugin-install task doesn't exist, but it was renamed to
plugin:install, so I used this. The installation fails with:
r...@r-pc D:\xampp\htdocs\pen4\pen4
# symfony plugin:install
so i load the php_zip.dll but i have the same message :php statup:
unable to load dynamic library C:\wamp\bin\php\php5.3.0\ext\ php_zip
when i executed the command
*$php plugins/sfPhpExcelPlugin/examples_1_2/01simple.php
*
after Create new PHPExcel object
Fatal error: Class
Hi,
I think this plugin needs to be ran inside a symfony thing (task or action
or whatever 'till sfConfig is loaded).
This to say that you can't run it outside a symfony execution scope.
From what you are saying, you have two problems: the php_zip library wich
isn't loaded (but declared so php
Hi,
I use memcached on my project and I use -useResultCache(true) in
queries. So everything would be ok, but when cache is enabled I get
lazy loaded data in my query wich have leftJoins. Example:
$q = $this-createQuery('a')
-leftJoin('a.DicRgn c')
thank you but should you explain more
--
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
Hi,
I think you simply cannot use this plugin outside symfony.
This means you cannot instantiate this object outside a symfony action for
example (just like what did Deepak).
If you don't understand actions, you should consider reading more on symfony
;-)
Cheers,
Before Printing, Think about
porque en jobeet no veo que ete pasando nada ni em mi proyecto
--
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
I want to validate my object cause these will not be given in by a
form but by URL (cause the frontend requires this)
so actualy i want a modelvalidation but i don't think this is possible
so i tried putting my object in the form and then
validate the form. but it always returns false and i
You need to bind posted values to the form object for isValid() to run
the validation checks.
Assuming form_values is a form array where each field in the form is
named as name=form_values[fieldname] then this is how:
$form_object = new FormObject();
I think you'll have to create two routes for every action - one for pl
language (without pl in URL) and one for other languages (with
language in URL)
On 18 dub, 20:16, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote:
Hi
I use i18n in symfony 1.4 My default culture is pl (set in
Aaaargh,
I've created custom PostValidator, but when I'm throwing my custom
exception from that post validator, symfony catches it first, and I
can not catch it in the action.
I've tried to create custom exception class that extends
sfValidatorError class (class sfValidatorLicenseError extends
$form-getErrorSchema() contains all validation errors thrown
On Apr 20, 2:55 pm, WallTearer walltea...@gmail.com wrote:
Aaaargh,
I've created custom PostValidator, but when I'm throwing my custom
exception from that post validator, symfony catches it first, and I
can not catch it in the
Hi everybody,
For my project, i have to use kerberos/ldap to authenticate the users
accessing the application.
I created the necessary tables : user, profile, ... instead of using
the plugin sfGuardPlugin. I made this choice because the user table is
minimalist (only a user_id, profile_id and a
If you want to validate your existing objects, you can bind the form
with the defaults.
On Apr 20, 12:34 pm, kim thechosendra...@gmail.com wrote:
I want to validate my object cause these will not be given in by a
form but by URL (cause the frontend requires this)
so actualy i want a
Hi
I've tried to use your suggestions to solve a similar problem that I
have with my application, but when I am in the backend_dev I can't see
the text label: there is a strange text pre Doctrine_Collection
data : Array( 0 : Object(ZoneCitta) ) /pre
do you know the meaning of that string?
I've
hi
i have to nest some or / and conditions
but i need brackets in my sql statement to do it in the right order
but how do you make this
is thould be in this form
(... OR ...) AND ...
thnx
greetings
--
If you want to report a vulnerability issue on symfony, please send it to
security at
Can you provide more info about your problem so i can try to help you with
your problem
On Tue, Apr 20, 2010 at 5:19 PM, SatBoy78 bruno.mat...@gmail.com wrote:
Hi
I've tried to use your suggestions to solve a similar problem that I
have with my application, but when I am in the backend_dev I
Hi I am developing a project with symfony (doctrine) and I am
encountering some problems in retrieving data from child0tables; I'll
explain the whole question: in my mysql db I have a main table that
contains foreign key of some child tables.
I've created symfony modules on these tables, and
I solved it now by doing this
... AND ... OR ... AND ...
this works for now but i'm still wondering how you can do
functionality like with the brackets
On 20 apr, 15:24, kim thechosendra...@gmail.com wrote:
hi
i have to nest some or / and conditions
but i need brackets in my sql statement to
I suggest you to use jQueryReloaded plugin, it works greatly, and what
you need is simply done by a helper like link_to_remote
On 19 Apr, 19:58, trankh juliend1...@gmail.com wrote:
Hello,
I want to call a simple action without passing any argument inside a
jquery function.
No argument
I suggest you to use jQueryReloaded plugin, it's really simple to use
that, and what you need is done with a helper like link_to
On 19 Apr, 19:58, trankh juliend1...@gmail.com wrote:
Hello,
I want to call a simple action without passing any argument inside a
jquery function.
No argument
But how can I check if the needed error happened?
Loop through the array of validation errors and check if the error was
triggered by the needed Validator?
Hope this is not the only way
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
I've got these tables:
Ristorante:
connection: doctrine
tableName: ristorante
columns:
id:
type: integer(4)
fixed: false
unsigned: false
primary: true
autoincrement: true
nome:
type: string(100)
fixed: false
unsigned: false
Yes I have done the same and it works great,
On Tue, Apr 20, 2010 at 8:16 PM, Thor thorste...@gmail.com wrote:
I suggest you to use jQueryReloaded plugin, it works greatly, and what
you need is simply done by a helper like link_to_remote
On 19 Apr, 19:58, trankh juliend1...@gmail.com wrote:
Just throw a custom extension that doesn't extend sfValidatorError.
After all, you are trying to break outside the form, so it's
legitimate to use exceptions that transcend the form framework.
Daniel
On Apr 20, 7:52 am, WallTearer walltea...@gmail.com wrote:
But how can I check if the needed
-where('column1 = ? AND (column2 = ? OR column3 = ?)', array(1, 2, 3));
Just nest them inside one where clause. :)
Sent from my iPhone
On Apr 20, 2010, at 4:34 PM, kim thechosendra...@gmail.com wrote:
I solved it now by doing this
... AND ... OR ... AND ...
this works for now but i'm still
Hi everyone,
I downloaded Symfony 1.4.4 from SVN and did the setup as per the
tutorial.
When I try to access any of my modules, I get the following:
Fatal error: Method sfOutputEscaperObjectDecorator::__toString() must
not throw an exception in
/project/apps/manager/templates/layout.php on
Try in schema.yml
Video:
actAs:
Timestampable: ~
Taggable: ~
columns:
then rebuild all
On Apr 20, 11:45 am, comb sa...@gmx.net wrote:
Hi!
I'm trying to get sfDoctrineActAsTaggablePlugin working with symfony
1.4.4.
First the plugin-install task doesn't exist, but it was renamed
Hi John,
I am facing the same problem you stated in How to stop doctrine
creating tables for a single model?
I can''t get the solution, and I think that stop executing build-all-
reload should be a good one when you are telling not to export that
model.
Hope you can give me a hand.
Best
Hello guys !
In using the inherit of doctrine with sfDoctrineGuard plugin, I get this
error:
*
**Bonjour,
En voulant hériter d'une classe de sfDoctrineGuard grâce à l'héritage de
doctrine, j'obtiens cette erreur :*
Fatal error: Access level to BaseecfdbGuardGroupForm::setupInheritance()
must
Hello all,
I discovered recently that some of my users are getting 404 on my website
because the are adding a final / to the url.
So i was wondering if there was a way in symfony to define automatic 301 to
remove the final slash, in other word to redirect urls like
www.test.com/cat1/product/ or
Hi!
You can add:
YourModel:
options:
symfony:
model: false
sent via htc magic
On Apr 20, 2010 8:07 PM, sromano88 sroman...@gmail.com wrote:
Hi John,
I am facing the same problem you stated in How to stop doctrine
creating tables for a single model?
I can''t get the solution, and I
Hi developers,
as you might have guessed, I am not working on the sfGrid components
solely to provide them to the community ;) What I would like, is to
get feedback to improve the quality of these components, while
everyone can benefit.
At the moment I am working on/playing with the
seems that everybody ignore me :(
--
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
Hi,
It's not about ignoring you, it's about time and knowledge, please don't
think it's about yourself or your specific problem as we are all concerned
;-)
Can you try with another cache strategy, ie APC or XCACHE to see if you have
the same behavior ?
By lazy loading, you mean hydrated objects
Hi developers,
as you might have guessed, I am not working on the sfGrid components
solely to provide them to the community ;) What I would like, is to
get feedback to improve the quality of these components, while
everyone can benefit.
At the moment I am working on/playing with the
Hi!
You are right about lazy loading, object tries to get DicMetroLines
from DB, but it ALREADY HAVE it in returned query.
Let me try to explain what I mean by lazy loading. An object have
property that related to another model. And this property
(DicMetroStations model) is returned with full
Hi developers,
as you might have guessed, I am not working on the sfGrid components
solely to provide them to the community ;) What I would like, is to
get feedback to improve the quality of these components, while
everyone can benefit.
At the moment I am working on/playing with the
Try to debug it (hope you have xdebug) to find if after querying db, the
hydrated object has its references array property not empty and containing
what it should (according to the query).
$query = //your query code
$objectCollection = $query-execute();
$object = $objectCollection-getFirst();
Yes it have it! I didn't tell you about it. But anyway it send query to DB
((
On Tue, Apr 20, 2010 at 10:28 PM, Stéphane stephane.er...@gmail.com wrote:
Try to debug it (hope you have xdebug) to find if after querying db, the
hydrated object has its references array property not empty and
Email was not complete ?
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Tue, Apr 20, 2010 at 9:19 PM, Yelena Bunina yelena...@gmail.com wrote:
Yes it have it! I didn't tell you about it. But anyway it send
No. That's all.
Object has this property if I fetch it with ...$q-fetchOne();
it displays an empty page when I try to var_dump or print_r the whole object
even it has one record. so I think object in pager has that property too,
but somehow it send query to DB. I don't understand why.
On Tue,
Hi developers,
as you might have guessed, I am not working on the sfGrid components
solely to provide them to the community ;) What I would like, is to
get feedback to improve the quality of these components, while
everyone can benefit.
At the moment I am working on/playing with the
Don't var_dump or print_r such object :-)
The query ran inside mysql (copy/past from webdebugtb) returns expected
result ?
If yes, dig into that array property to look the Doctrine_collection and if
it does contains records, this way dig until the one you want to see if
every object is well
On Tue, 20 Apr 2010, SatBoy78 wrote:
Hi I am developing a project with symfony (doctrine) and I am
encountering some problems in retrieving data from child0tables; I'll
explain the whole question: in my mysql db I have a main table that
contains foreign key of some child tables.
I've
Thanks for answering.. unfortunately this fails during the
doctrine:build -all task:
r...@r-pc D:\xampp\htdocs\pen4\pen4
# symfony doctrine:build --all --and-load --no-confirmation
doctrine Dropping doctrine database
doctrine Creating dev environment doctrine database
doctrine generating
Hi developers,
as you might have guessed, I am not working on the sfGrid components
solely to provide them to the community ;) What I would like, is to get
feedback to improve the quality of these components, while everyone can
benefit.
At the moment I am working on/playing with the
I got it to work:
I downloaded (instead of svn checkoutthe) the plugins tgz with the
Download package-Link from the plugins-page
http://www.symfony-project.org/plugins/sfDoctrineActAsTaggablePlugin
Than the plugin:install works.
The templates: [Taggable] still fails with a Unknown method
oh sorry now i see i didn't mention it has to be done in doctrine
so this must be something like
createQuery()-where...-andWhere...-andAlso
of course your right to do this like you say in normal SQL but adding
this brackets is not possible in
doctrine (or at least i don't know the way to do
I Don't know what was wrong with google groups, now my message is
posted, 5 times... I haven't got the righs to remove any of them
either, so sorry about that. Reading one of 5 should be enough ;)
--
If you want to report a vulnerability issue on symfony, please send it to
security at
It reports no problematic issues
http://pastie.org/926961
On Apr 19, 9:52 am, Tom Ptacnik to...@tomor.cz wrote:
What about symfony check_configuration.php script?
On 15 dub, 14:38, Andris andris.ve...@gmail.com wrote:
When issuing command: symfony propel:data-load it fails with notice
1. I think php_posix is not available for windows
2. You are looking for command line interface -
press Run and fill in cmd or locate it in Accesories Command
Prompt
On Apr 19, 2:55 pm, i...@ticktockit.net i...@ticktockit.net wrote:
During my configuration check I get the following:
Which line of code causes this performance problems?
On 19 dub, 17:20, mehdi hadef mehdi.ha...@gmail.com wrote:
Hi all,
I have a performance problem on a page using sfDoctrinePager.
It takes more than 5 seconds to display the page on local server.
Let's see the code in my actions.class
56 matches
Mail list logo