Hi everyone,
I'm working on two related tables : article/media.
"onDelete: cascade" work like a charm. But I would the media files to
be deleted to.
Where should this part of the code be integrated ? I though it would
in the Media.php/delete function, but it doesn't work.
Any idea ?
thanks a lot
Are you still calling the parent delete function after removing the
files?
On May 12, 8:26 am, nico_bl1nd <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I'm working on two related tables : article/media.
> "onDelete: cascade" work like a charm. But I would the media files to
> be deleted to.
> Whe
This is quite automatic.
I call the Article.delete method, then everything is done by "magic",
thanks to the schema.yml onDelete:cascade parameter in the Media
definition.
I'm not sure to be clear.
On 12 mai, 10:37, cleve <[EMAIL PROTECTED]> wrote:
> Are you still calling the parent delete functi
Hello,
If you are using a innodb table, the delete method from the Article
never call Media::delete method. The deletion is done by mysql/innodb
engine.
what you should do is to overwrite the delete from the article to get
and store image location, then delete the article (the images rows
will b
But...ideally...Symfony stuff should be available, right? :|
I mean...I want to include a partial there...which has all our contact
details...
On May 10, 12:02 am, Eno <[EMAIL PROTECTED]> wrote:
> On Fri, 9 May 2008, Sumedh wrote:
> > We could create a page for this...
>
> > But this page doesn'
Thanks for your reply.
I think I will stick with myIsam and then do the whole delete on my
own.
thanks again.
On May 12, 10:56 am, "Thomas Rabaix" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> If you are using a innodb table, the delete method from the Article
> never call Media::delete method. The del
Hi,
Can you give us some details on your problem?
Helpers are pretty straightfoward actually. It's simple "PHP4 style"
functions, that return HTML.
The system remains the same on sf1.1.
You have many examples running in a live site in the public code of
symfonians.net.
See http://symfonians.org/
Ideally, but if the 500 error has happened before Symfony has even
been instantiated (eg from a bad .htaccess config), there isn't much
you can do.
How often do your contact details change I'd have thought this is
pretty safe to be hardcoded in a static HTML file... you can always
use
I am trying to access a page from http://www.symfony-project.org/snippets/tag
http://www.symfony-project.org/snippets/snippets/tagged/log/order_by/date
(the link for snippets tagged with 'log' tag)
and im getting 404 error, any ideas ?
And since i'm posting where can i find info on using custom
Hi
You have to override your 'delete' method in your lib/model/foo
and it's not depend on your database
Like this...
class Foo extends BaseFoo
{
public function delete ($con = null)
{
$photoDir = sfConfig::get('app_xx_dir');
if (is_file($photoDir.'/'.$this->getFileName()))
Yes, its depends ...
$article->delete() will never call $media->delete() at least in innodb
Thomas
On Mon, May 12, 2008 at 1:19 PM, Olivier LOYNET <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> You have to override your 'delete' method in your lib/model/foo
> and it's not depend on your database
>
>
sfFPDFPlugin is replaced by sfTCPDFPlugin
http://trac.symfony-project.com/wiki/sfTCPDFPlugin
http://www.symfony-project.org/forum/index.php/m/42796/10573/0///#msg_42796
On May 11, 2:10 pm, "Bernhard Schussek" <[EMAIL PROTECTED]> wrote:
> Hello Bruno!
>
> I'm currently using FPDF with symfony 1.0.
Hi,
You can try something like this in your file
Lib/model/Arcivle.php to delete the attached media
class Article extends BaseArticle
{
...
public function delete ($con = null)
{
// retrieve the "media" from the media_id
$media = MediaPeer::retrieveByPk($this->getMediaId());
If not $sf_user->isAuthenticated() then $sf_user->getGuardUser()
returns null without any warning/exception, so trying ->getUsername()
or anything else should lead you to troubles
On May 8, 5:30 am, Johannes Frandsen <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have now installed sfGuardDoctrine and the
BTW, I also try to override this kind of behavior, but it wasn´t
trivial, the hasCredential() method takes into account that a null
getGuardUser() means not logged in
so be careful messing around with it
On May 12, 11:30 am, arhak <[EMAIL PROTECTED]> wrote:
> If not $sf_user->isAuthenticated() th
Hello
I'm trying to lean symfony1.1 forms and am slowed down because the
usual "ctrl-space" auto completion of my IDE (eclipse) does not
reveal which options an object accepts. Example:
$this->widgetSchema['tax']->setAttribute('size', 3);
instead of
$this->widgetSchema['tax']->set
I have seen several discussions over the forums and never saw a complete
answer to it.
My problem is that sessions expire within 30 minutes regardless of the
timeout value in my settings.yml
I check the cookies and it says the session cookie is expiring in a month
(which is correct by my timeout
Everyone using sfDoctrinePlugin with symfony 1.1, please use
sfDoctrinePlugin/trunk. I have removed the
sfDoctrinePlugin/branches/1.0-sf1.1 branch until we complete the development
in trunk. Once it is stable and complete with the same functionality as
sfPropelPlugin, we will branch to the same pat
18 matches
Mail list logo