Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I18n fields: first getAttribute is empty #16

Open
axelzuzek opened this issue Apr 17, 2019 · 1 comment
Open

I18n fields: first getAttribute is empty #16

axelzuzek opened this issue Apr 17, 2019 · 1 comment

Comments

@axelzuzek
Copy link

axelzuzek commented Apr 17, 2019

I have several actAs I18n definitions in my schema.yml

Article:
  tableName: article 
 actAs:
    I18n:
      fields: [name]
 columns:
    name: string(255)

in my schema.yml
the first call for those i18n attributes are always empty, it works from the second call.

$article = Doctrine::getTable('Article')->find(1);

$article->getName(); // first call returns ""
$article->getName(); // second call returns "foo"
$article->getName(); // and all further calls return "foo"

the code worked fine with symfony 1.4.20

@mkopinsky
Copy link

This repo isn't really maintained. You might get some help in friendsofsymfony1/symfony1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants