1.4 includes swiftmailer, 1.2 did not, so the programmer most likely
installed it as a plugin. Disable that plugin and update your mail-related
code to use the built-in method. For details, check the mailer chapter of
the book.
On Jan 19, 2011 6:56 PM, Llew melinko2...@gmail.com wrote:
--
If you
You could also download the symfony 1.2 library and install that into the
project that needs it then change the ProjectConfiguration.class.php file to
point at your manually installed library instead of using the PEAR one. In
fact, this is the recommended method for using symfony with projects as
I agree with Gareth, to quote Big Lebowski You're entering a world of pain
if you try to debug a later framework version!
On Thu, Jan 20, 2011 at 9:23 AM, Gareth McCumskey gmccums...@gmail.comwrote:
You could also download the symfony 1.2 library and install that into the
project that needs it
Hi,
I would like to add caching feature to my restful webservices. I am
planning to use the default caching mechanism provided by the symfony.
For that I have changed the cache.yml as given below,
enabled: on
with_layout: true
lifetime: 900
client_lifetime: 0
And set cache:
Thank you for answer, I see now where is a difference.
I have my custom repository for Test entity generated by framework
(using annotations) in /Application/HelloBundle/Repositories/Test.php
When I call it from controller by: $this-
get('doctrine.orm.entity_manager')-getRepository(Application
Hi there, currently having troubles inside a fairly simple
preDqlSelect(), defined inside a record listener. I've followed the
Doctrine documentation, using the code below I'm getting a
Doctrine_Connection_Mysql_Exception that reads:
Column not found: 1054 Unknown column 'a.publish_until' in
Eliminate the user key from the URL:
http://10.1.12.123/hysa/restful.php/news/1/en/newscategorieshttp://10.1.12.123/hysa/restful.php/news/1/en/user3/newscategories
gabriel
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You
I've just removed the IF() clause and redefined it using a combination
of standard boolean comparisons, now the aliases are correct in both
the DQL and SQL.
Possible new Doctrine bug here Jonathan?
--
If you want to report a vulnerability issue on symfony, please send it to
security at
@stof: As you guys mentioned before; when I call entity repository
by:
$this-get('doctrine.orm.entity_manager')-
getRepository('HelloBundle:Test') I retrieve default repository where
only magic finders are present, no custom ones.
How can I call then custom
On Thu, 20 Jan 2011 04:09:24 -0800 (PST), Venzon luk...@gmail.com wrote:
@stof: As you guys mentioned before; when I call entity repository
by:
$this-get('doctrine.orm.entity_manager')-
getRepository('HelloBundle:Test') I retrieve default repository where
only magic finders are present, no
When I use fully qualified class name $this-
get('doctrine.orm.entity_manager')-
getRepository('Application\HelloBundle\Repository\Test') I get error:
Class Application\HelloBundle\Repository\Test is not a valid entity or
mapped super class.
My repository class looks like this:
?php
namespace
On Thu, 20 Jan 2011 04:27:01 -0800 (PST), Venzon luk...@gmail.com wrote:
When I use fully qualified class name $this-
get('doctrine.orm.entity_manager')-
getRepository('Application\HelloBundle\Repository\Test') I get error:
Class Application\HelloBundle\Repository\Test is not a valid entity or
that is not possible as we need to authenticate the user by using the
usertoken
any other methods?
On Jan 20, 4:24 pm, Gabriel Petchesi pghora...@gmail.com wrote:
Eliminate the user key from the
On Thu, 20 Jan 2011 04:40:04 -0800 (PST), Venzon luk...@gmail.com wrote:
I am testing with mutiple db connections, my config.yml looks like
this:
doctrine.orm:
auto_generate_proxy_classes: %kernel.debug%
auto_generate_hydrator_classes: true
auto_generate_proxy_classes: true
What will be proper config solution when I have entities connecting
with several databases in same bundle?
--
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
On Thu, 20 Jan 2011 04:58:50 -0800 (PST), Venzon luk...@gmail.com wrote:
What will be proper config solution when I have entities connecting
with several databases in same bundle?
If you need to put sme entities in a database and some others in another
database the proper configuration would be
That fixed it for me thanks, I also found the same fix Francois
posted:
http://www.phpforum.com.ar/index.php?action=printpage;topic=300.0
--
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
My guess is that he didn't enable APC cache for doctrine metadata, and
that can make quite a difference.
On Jan 19, 6:15 pm, Gareth McCumskey gmccums...@gmail.com wrote:
Lies, damned lies and benchmarks (To mangle a popular phrase)
On Wed, Jan 19, 2011 at 4:27 PM, Tom Boutell
Hi Gustavo and Bernhard,
thanks for sharing your approach. This thread seems to be the most
comprehensive guide to custom validators with Symfony2...
nevertheless, I unfortunately don't manage to call my custom
validator. Maybe things changed since then, I am currently working
with PR5 (directly
2010/11/24 Ases j...@atzeneta.es:
From annotations works fine, but how I would have to call it from
validation.yml?
#Application/MyBundle/Resources/config/validation.yml
Application\MyBundle\Entity\Anything:
getters:
address:
- NotBlank: ~
- IpAddress: ~
BTW, you can now
Is it possible in an sfPropelRoute to include extra parameters in the
URL, that doesn't correspond to the object?
For example, my object:
item:
id
title
slug
message
created_at
updated_at
This is a correct sfPropelRoute url:
topic_show:
url: /part1/:slug
class:
Hi,
I have an action with this code:
$c = new Criteria();
$c-addJoin(sfGuardUserProfilePeer::USER_ID,
sfGuardUserGroupPeer::USER_ID, Criteria::INNER_JOIN);
$c-add(sfGuardUserGroupPeer::GROUP_ID, 2 );
$this-pager = new PropelPager($c, 'sfGuardUserProfilePeer',
'doSelect', $page = 2, $rowsPerPage
I'm creating my own blog engine to learn Symfony, and I have a
question :
In the generated administration pages, I have a drop-down list of
authors, to indicate the author_id.
I'd like to hide that drop-down list, and set the author_id to the id
of the current logged-in user.
How can I
@stof: My orm mapping config can be a problem indeed, I will try to
work on it and will report back
I really have hard time because I have to use multiple databases and
that makes all config things hard, especialy when many aspects of SF2
are new to me :(
--
If you want to report a
Set up a custom cache key for the given page that does not include that
information.
Look for documentation about sf_cache_key here:
http://www.symfony-project.org/gentle-introduction/1_4/en/12-Caching
gabriel
--
If you want to report a vulnerability issue on symfony, please send it to
I did test and removed multiple entity managers leaving only one:
doctrine.orm:
mappings:
HelloBundle: ~
I am still getting same error telling me:
Class Application\HelloBundle\Repository\Test is not a valid entity or
mapped super class.
Maybe I lack some annotations or
Is it possible to use other characters in a route, except only the
slash (/)?
For example, I want to use the dash (-):
This works: (1) /myroute/:slug/:id
Instead I want: (2) /myroute/:slug-:id
This results in:
(1) /myroute/my-item/56
(2) /myroute/my-item-56
--
If you want to report a
On Thu, 20 Jan 2011 06:59:59 -0800 (PST), HAUSa
jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
Is it possible to use other characters in a route, except only the
slash (/)?
For example, I want to use the dash (-):
This works: (1) /myroute/:slug/:id
Instead I want: (2)
I'd like to hide that drop-down list, and set the author_id to the id
of the current logged-in user.
I dont have an installation here but you can do it as follows:
- in the formclass from you object get the user object via the options
from the logged in user.
- overwrite the widget for the
I am looking for someone who can create a site from scratch in Symfony
and make small changes like buttons and favicons to more difficult
builds/changes like memberships and affiliate programs.
--
If you want to report a vulnerability issue on symfony, please send it to
security at
Hi Benoit,
There's a mistake, it's not 27 but 22, because if you did exactly what
Jobeet said, you have and 22 more...
On 14 jan, 13:32, benoitW interact...@gmail.com wrote:
I have to say it works fine when I replace that number 27 by
'Programming'...
On 14 jan, 12:03, benoitW
What's the difference between embedForm and embedRelation ? Both show
the form. So what are the advantages or needs to use one or another ?
Thanks
--
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
Hi Bernhard,
thanks for your quick reply. Here is what I have:
The validation setup in the entity class
/**
* @var text $locationName
* @myvalidation:Location(property=locationName,
message=Geocoding of location failed!)
*/
private $locationName;
The setup in config.yml
Could it be that the namespace definition of your Location class is wrong?
--
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
Stop, the error is found...
I defined the wrong namespace for my constraint class!
Replacing
namespace Symfony\Component\Validator\Constraints;
by
namespace Application\RsBundle\Component\Validator\Constraints;
solved the problem.
Sorry for bothering you... and have a nice day,
Christian
Thanks for your answer.. I read the link. But unfortunately I didn't
from it. Could please explain more?
On Jan 20, 7:48 pm, Gabriel Petchesi pghora...@gmail.com wrote:
Set up a custom cache key for the given page that does not include that
information.
Look for documentation about
On Thu, 20 Jan 2011 07:33:42 -0800 (PST), cestcri cest...@yahoo.fr
wrote:
Hi Bernhard,
thanks for your quick reply. Here is what I have:
The validation setup in the entity class
/**
* @var text $locationName
* @myvalidation:Location(property=locationName,
Thanks Stof, I just found it... but it is good to know that I would
have solved the issue anyway thanks to your eagle eyes ;)
Best regards,
Christian
On Jan 20, 4:41 pm, stof s...@notk.org wrote:
On Thu, 20 Jan 2011 07:33:42 -0800 (PST), cestcri cest...@yahoo.fr
wrote:
Hi Bernhard,
I think I know why debuging is making me problems, I have noticed that
some orm cache in always present in my apc cache and is used to map
entities even when config.yml has been changed...
--
If you want to report a vulnerability issue on symfony, please send it to
security at
By the way,
can anybody explain how error messages are ideally set for custom
validators?
1. They can be annotated in the entity class, e.g.
* @myValidation:Location(message=Provide a valid location!)
2. They are stated in the contraint class, e.g.
class Location extends
Look into segment separators options for sfRouting:
http://www.symfony-project.org/reference/1_4/en/05-Factories#chapter_05_sub_segment_separators
This can be enabled for all routes or for specific ones.
However I'm not sure this will work for you:
/myroute/my-item-56
maybe with
Hello to everyone.
I need to retrieve more than just 1 object on the page.
I have more related models and i would like to pass together on the
route
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because
Hi everyone!
I'm working on a project with symfony 1.4 and propel as a ORM. These days we
are thinking about the possibility of make some changes to the project.
What we think is if is posible to change de PDO with other library, maybe
adoDB.
Do you think this is possible? What would be the
On 20/01/2011 19:27, Manuel Alejandro Gómez Nicasio wrote:
Hi everyone!
I'm working on a project with symfony 1.4 and propel as a ORM. These
days we are thinking about the possibility of make some changes to the
project.
What we think is if is posible to change de PDO with other library,
You can create a custom route class that understands how to retrieve
your objects from whatever url pattern you come up with.
Have a look here:
http://www.symfony-project.org/more-with-symfony/1_4/en/02-Advanced-Routing
Daniel
On Jan 20, 9:07 am, ma89a2 marcelooliveira...@gmail.com wrote:
I changed a bit my entity manager configuration:
entity_managers:
conn1:
connection: conn1
mappings:
HelloBundle: { type: annotation }
conn2:
connection: conn2
mappings:
HelloBundle: { type:
small correction, seems that now (with current config) I can call
every method I create, doesnt matter what is its name
--
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
I have a site where members can register, specify their interests and levels
of interest (very interested in dogs, not interested in cats). Main tables
are member, interest, level, interest_level with appropriate relationships.
Interest_level has member_id, interest_id and level_id. Once a
Le 20/01/2011 19:39, Venzon a écrit :
I changed a bit my entity manager configuration:
entity_managers:
conn1:
connection: conn1
mappings:
HelloBundle: { type: annotation }
conn2:
connection: conn2
mappings:
thanks for answer, GarethMc.
Propel works well. As I said, the project is almost done. However, these
days while talking with the admin of the production boxes he told us that
production machines doesn't have the PDO version that the project needs. So,
he suggest to find an alternative to PDO,
Hi,
I've been working on a Doctrine2 based authentication system for a while. I
have successfully created the security controller, related views and
configured config.yml as described in master docs. I can get to a login form
fine and when I click submit, the login data is processed on the server
51 matches
Mail list logo